Using Resin 1.1.
I get a NullPointerException on the following code if there is no
authenticated user for the session. Does this seem right to everyone?

<%= request.isUserInRole("customer") ? "true" : "false" %>

I can get around it with:

<%= (request.getUserPrincipal() != null) && request.isUserInRole("customer")
? "true" : "false" %>

I'm wondering if this seems like correct behaviour, or if I should report it
as a bug.

Thanks,

Sam

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to