dev@glassfish.java.net

Re: JSP-39: EL expressions of primitive types causes NPE

From: Kin-man Chung <kinman.chung_at_oracle.com>
Date: Mon, 24 Feb 2014 15:00:28 -0800

Thanks for reporting the bug and providing a patch for it. I have
applied the patch to the trunk of jsp.java.net source (revision 1462).
A version of the maven artifacts for the fix will be published in maven
central and be integrated into glassfish soon.

On 2/21/14, 8:52 AM, Eirik Bjørsnøs wrote:
> 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.