Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
5.5.0
-
None
-
Flagged
-
Tiger Sprint 211
Description
Back port HSTTWO-4596 to 12.6
NPE can occur in DocumentTreePickerRepresentation.java:193 (on 12.5.0) when traversing folders for which (assumably) no link can be created.
192 final HstLink hstLink = linkCreator.create(node, editingMount); 193 if (isFolder(node) && ((HstSiteMapItemService)hstLink.getHstSiteMapItem()).getExtension() != null ) {
When editing a site menu item in the Channel Manager, and selecting a document on behalf of an internal link, this results in subfolders not showing in the document picker.
16.05.2019 14:56:25 [catalina-exec-22] WARN [org.hippoecm.hst.pagecomposer.jaxrs.model.treepicker.DocumentTreePickerRepresentation.represent():246] Exception while trying to add child '/content/documents/developer/documentation'. java.lang.NullPointerException: null at org.hippoecm.hst.pagecomposer.jaxrs.model.treepicker.DocumentTreePickerRepresentation.represent(DocumentTreePickerRepresentation.java:193) ~[hst-page-composer-5.5.0.jar:5.5.0] at org.hippoecm.hst.pagecomposer.jaxrs.model.treepicker.DocumentTreePickerRepresentation.represent(DocumentTreePickerRepresentation.java:234) [hst-page-composer-5.5.0.jar:5.5.0] at org.hippoecm.hst.pagecomposer.jaxrs.model.treepicker.DocumentTreePickerRepresentation.representRequestContentNode(DocumentTreePickerRepresentation.java:62) [hst-page-composer-5.5.0.jar:5.5.0] at org.hippoecm.hst.pagecomposer.jaxrs.services.HippoDocumentResource$1.call(HippoDocumentResource.java:52) [hst-page-composer-5.5.0.jar:5.5.0] at org.hippoecm.hst.pagecomposer.jaxrs.services.HippoDocumentResource$1.call(HippoDocumentResource.java:48) [hst-page-composer-5.5.0.jar:5.5.0] at org.hippoecm.hst.pagecomposer.jaxrs.services.AbstractConfigResource.tryGet(AbstractConfigResource.java:111) [hst-page-composer-5.5.0.jar:5.5.0] at org.hippoecm.hst.pagecomposer.jaxrs.services.HippoDocumentResource.getRoot(HippoDocumentResource.java:48) [hst-page-composer-5.5.0.jar:5.5.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_212] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_212] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_212] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_212] at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) [cxf-core-3.1.15.jar:3.1.15] at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) [cxf-core-3.1.15.jar:3.1.15] at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:191) [cxf-rt-frontend-jaxrs-3.1.15.jar:3.1.15] at org.hippoecm.hst.jaxrs.cxf.AroundProcessableJAXRSInvoker.invoke(AroundProcessableJAXRSInvoker.java:94) [hst-jaxrs-5.5.0.jar:5.5.0] at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101) [cxf-rt-frontend-jaxrs-3.1.15.jar:3.1.15] at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) [cxf-core-3.1.15.jar:3.1.15] at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) [cxf-core-3.1.15.jar:3.1.15] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) [cxf-core-3.1.15.jar:3.1.15] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-core-3.1.15.jar:3.1.15] at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267) [cxf-rt-transports-http-3.1.15.jar:3.1.15] at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) [cxf-rt-transports-http-3.1.15.jar:3.1.15] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) [cxf-rt-transports-http-3.1.15.jar:3.1.15] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) [cxf-rt-transports-http-3.1.15.jar:3.1.15] at org.hippoecm.hst.jaxrs.cxf.CXFJaxrsService.invoke(CXFJaxrsService.java:147) [hst-jaxrs-5.5.0.jar:5.5.0] at org.hippoecm.hst.pagecomposer.jaxrs.cxf.CXFJaxrsHstConfigService.invoke(CXFJaxrsHstConfigService.java:142) [hst-page-composer-5.5.0.jar:5.5.0] at
Attachments
Issue Links
- is a backport of
-
HSTTWO-4596 NullPointerException in Ch. Mgr. when trying to select a document for a menu item
- Closed