-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tommy,

On 4/19/2009 10:00 PM, Tommy Pham wrote:
> 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?

Strange. Can you post the stack trace? Also, can you create a minimal
test case that fits into a single JSP so we can play with it?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknt4PoACgkQ9CaO5/Lv0PDpQACdEacJsacch1L41Jv1kCNq6ZMT
pAQAn1Alu2FrXSZcQFOkucVeGWym5jtf
=Fl7B
-----END PGP SIGNATURE-----

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

Reply via email to