fix null pointer exception missing initialization hashmap