If I understand correctly, NonBlockingHashMap can be used as a drop-in replacement for ConcurrentHashMap. java.lang.NullPointerException at ...