java hashmap flaws ?
- by Tiberiu Hajas
hi there, 
  if (agents != null)
         for (Iterator iter = agents.keySet().iterator(); iter .hasNext();)
         {
           // some stuffs here
         }
I have the following piece of java code, the agents is a hashmap, wondering if anyone can figure it out why on the line with "for" statement sometimes I got NPE ? is there any flaw with hashmaps ? thanks