Hi There,
The NPE is coming from the { if (session == null || session.isNew()) }
since even if session is null then you are still trying to call a method of
session.
a safer alternative would be
if (session == null) {
//error
} else {
if (session.isNew()) {
} els
some refresh and why this occurs only when tomcat runs in
UNIX .I don't get this problem in Windows
Thanks and Regards
Mukund
-Original Message-
From: Peter Guyatt [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 4:10 PM
To: Tomcat Users List
Subject: RE: SESSION VARIABLE BE
Peter Guyatt wrote:
Hi There,
The NPE is coming from the { if (session == null || session.isNew()) }
since even if session is null then you are still trying to call a method of
session.
According to Java language specification, "15.24 Conditional-Or
Operator ||", it's not so. That say