dev@glassfish.java.net

JSP-39: EL expressions of primitive types causes NPE

From: Eirik Bjørsnøs <eirbjo_at_gmail.com>
Date: Fri, 21 Feb 2014 17:52:26 +0100

Hi!

I've just filed: https://java.net/jira/browse/JSP-39

This issue causes JSPs like this to fail with a NPE:

<c:if test="${doesNotExist}">
    Nope
</c:if>

The bug is caused by Glassfish's Jasper not taking into account the
type coercion change introduced in EL 3.0 for non-primitive types
(now they're returned as null instead of false).

This is a showstopper for us upgrading to Jetty 9.1.x.

The "same" bug is already fixed in Tomcat 8 with a minor change. I've
attached a patch for Glassfish JSP which fixes the NPE issue.

Any chance someone from the Glassfish team can take a look at this?

Thanks,
Eirik.