Timeline for Java hashmap access without exception
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 18, 2013 at 12:20 | comment | added | user1990950 | Ok I got rid of the null pointer exceptions, but it made my game completely unplayable. Is there an alternative to Hashmaps for infinite dynamic maps? | |
| Oct 18, 2013 at 12:02 | comment | added | ratchet freak |
@user1990950 much more efficient than using Collections.synchronizedMap
|
|
| Oct 18, 2013 at 12:00 | comment | added | user1990950 | Ok but is a ConcurrentMap efficient? | |
| Oct 18, 2013 at 11:54 | comment | added | ratchet freak | @user1990950 you may need to rethink your design, or add more checks | |
| Oct 18, 2013 at 11:34 | comment | added | user1990950 | When using a ConcurrentMap I'm getting many null pointer exceptions. Is there a way to convert a normal HashMap to a list or an array without getting the ConcurrentModificationException? | |
| Oct 18, 2013 at 11:12 | history | answered | ratchet freak | CC BY-SA 3.0 |