Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] NPE due to EL 3 - <c:if test="{nonExisting}> ?

Hi together,
after updating the Jetty to the newest 9.1.4 version, in order to support my Spring4/Java 8 web app, I run into a strange NPE problem. 

I get this error:
	at org.apache.jasper.runtime.HttpJspBase.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.jasper.servlet.JspServletWrapper.service(
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(

If I am right, the problem is the el-3 library, which will treat null values in a different way. I found some issues in bug tracking systems for Tomcat, Glassfish and even in Jetty – but I was not able to figure out, how to solve this problem. 

I want to avoid writing: 
<c:if test=„${not empty nonExisting && nonExisting}“>

Is there anything I can do in order to not modify the existing JSP files?


Back to the top