2010/4/15 Károly Holczhauser <[email protected]> > BUT if I don't use the Thread all going to right, there will no NullPointer > Exception > Can anyone tell me why ? >
Not exactly, but since you have a thread that's modifying your collection, you're more than likely running into a synchronization issue where the view is being updated (and reading from the collection) at the same time it's being modified by the thread. > Any solution ? > Based on what you posted? Not really. Put a lot of print statements to see exactly what the thread and adapter are doing when you hit that null pointer and take more care about synchronizing your collection. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

