Monday, July 19, 2010

[android-developers] CopyOnWriteArrayList Problem

I am having an issue that only happens in 1.5 or 1.6. When I serialize
a CopyOnWriteArrayList to save it and the restore it after I try to
add or remove items I get a Null Pointer Exception error. I can read
from the list with no problems and this doesn't happen on 2.0, 2.01 or
2.2. I used the eclipse debugger to step through the issue and found
that the CopyOnWriteArrayList "lock" instance variable is what is set
to null. Has anyone else seen this and is there any fix?

--
Joshua Frank

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate