Hi Thomas,
you wrote:
(1) String firstVisit = (String) session.getAttribute("firstVisit");
| (2) if (firstVisit.equals("")) {
| (3) ...
| (4) }
If a user is visitting your page the first time, firstVisit is null after the first
line. So you're trying to check if null is equal to "" in line 2. This results in a
NullPointerException.
Thomas
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851868#3851868
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851868
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user