SyntaxFix
Write A Post
Hire A Developer
Questions
HashMap supports both null keys and values
null
http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html
... and permits null values and the null key
So your problem is probably not the map itself.