Saturday, June 18, 2011

[android-developers] Re: NullpointerException using put method on a LinkedHashMap

  1. I wonder how your code compiles at all with LinkedHashMap.Entry not being visible at all (Map.Entry is).
  2. LinkedHashMap can hold null keys and values so that can't be the reason for the NPE
  3. I made a quick test and "my" cache with limited size works without issues
  4. Unless you provide at least the line of code that fails I can't help any further
Cheers
Emanuel Moecklin
1gravity LLC

--
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

No comments:

Post a Comment