Re: [solved] Exception handling JSF2

Splash Forums PrettyFaces Users [solved] Exception handling JSF2 Re: [solved] Exception handling JSF2

#20142

Ulisses Constantini
Participant

I debug using souce of prettyfaces so i get a NullPointerException on PrettyNavigationHandler on line 55:

String originalViewId = context.getViewRoot().getViewId();

context.getViewRoot() is null.

I only skip the nullpointer:

if (context.getViewRoot() == null){

if (true == context.getResponseComplete() )

prettyContext.setInNavigation(false);

return;

}

than i had another exception:

java.lang.NullPointerException

at com.sun.faces.lifecycle.RestoreViewPhase.notifyAfter(RestoreViewPhase.java:288)

at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)

at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)

I’m using JSF 2.0.3_b03 and PrettyFaces souce JSF2.0 – 3.0.1