i tried to store a bytearray in a LinkedHashMap
static Map<Long, byte[]> lhm2 = new LinkedHashMap<Long, byte[]>(1000);
But
lhm2.get(1)
will throw a NullPointerException. lhm2 contains key 1 and i checked if it's not null with
if(lhm2.get(1) != null){
System.out.println("not null");
}
Any suggestions?
Thanks in advance!
Chris