How do you pass in null values into a HashMap? The following code snippet works with options filled in:
HashMap options = new HashMap
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.