I use a SparseArray mapping ints to Objects. I put the Objects into the SparseArray and immediately retrive them in a different method. However, occasionally this returns null. I want a method that will wait until the retrieved value is not null to retrieve it.