myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Andraschko (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (MYFACES-3913) NPE in SwitchAjaxExceptionHandlerWrapperImpl
Date Wed, 06 Aug 2014 10:19:11 GMT
Thomas Andraschko created MYFACES-3913:
------------------------------------------

             Summary: NPE in SwitchAjaxExceptionHandlerWrapperImpl
                 Key: MYFACES-3913
                 URL: https://issues.apache.org/jira/browse/MYFACES-3913
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.1.15
            Reporter: Thomas Andraschko


_isAjaxRequest = facesContext.getPartialViewContext().isAjaxRequest();

occurs 2 times in SwitchAjaxExceptionHandlerWrapperImpl and facesContext.getPartialViewContext()
can be null.
We should just return false if it's null.

StackTrace:
java.lang.NullPointerException
	at org.apache.myfaces.shared.context.SwitchAjaxExceptionHandlerWrapperImpl.isAjaxRequest(SwitchAjaxExceptionHandlerWrapperImpl.java:98)
	at org.apache.myfaces.shared.context.SwitchAjaxExceptionHandlerWrapperImpl.getWrapped(SwitchAjaxExceptionHandlerWrapperImpl.java:106)
	at javax.faces.context.ExceptionHandlerWrapper.isListenerForSource(ExceptionHandlerWrapper.java:70)
	at javax.faces.context.ExceptionHandlerWrapper.isListenerForSource(ExceptionHandlerWrapper.java:70)
	at javax.faces.context.ExceptionHandlerWrapper.isListenerForSource(ExceptionHandlerWrapper.java:70)
	at org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:2480)
	at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:586)
	at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:616)
	at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:336)
	at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:336)
	at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:336)
	at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:121)
	at org.apache.myfaces.lifecycle.PhaseListenerManager.publishException(PhaseListenerManager.java:136)
	at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:123)
	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:185)
	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
	at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message