I have a partially nfilled array of objects, and when I iterate through them I tried to check to see whether the selected object is null before I do other stuff
null
The given code works for me. Notice that someArray[i] is always null since you have not initialized the second dimension of the array.