Hi,

I have a problem iterating a LinkedHashMap<Integer, Object> lhmObject. 
The lhmObject.size() gives correct size and lhmObject.keySet().toString gives 
the correct values.
However, if I try iterate the object with lhmObject.keySet() with an empty loop:

for (Integer key : lhmObject.keySet() ) { }

or

for (Iterator it = lhmObject.keySet().iterator(); it.hasNext(); ) { }

I get a HTTP 500 - NullPointerException in the JSP page, which has java.util.* 
and appropriate <package.Object> for import.
Has anyone seen this before?

Tomcat 6.0.18
JDK 1.6u4
Win03R2 x86

TIA,
Tommy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to