Details
Description
ViewDeclarationLanguage is null here: https://github.com/apache/myfaces/blob/main/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java#L1927
Exception:
Caused by: java.lang.NullPointerException at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.createView(FaceletViewDeclarationLanguage.java:1935) at org.apache.myfaces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:265) at jakarta.faces.application.ViewHandlerWrapper.createView(ViewHandlerWrapper.java:116) at com.sun.ts.tests.jsf.spec.navigation.TestServlet.setup(TestServlet.java:61)
This occurs because there is a TestViewHandler: https://github.com/jakartaee/faces/blob/4.0.1/tck/old-tck/source/src/com/sun/ts/tests/jsf/spec/navigation/TestViewHandler.java that is used and it does not override the default implementation of getViewDeclarationLanguage which just returns null: https://github.com/apache/myfaces/blob/main/api/src/main/java/jakarta/faces/application/ViewHandler.java#L270