Steps to reproduce:
- In a Workspace, click on the + button
- Choose the File document type
- Fill the Title field and leave the other fields blank
- Click the Create button
- The document view is displayed
- Observe that an exception has been generated in the logs
2019-08-09 10:13:44,991 ERROR [WebEngineExceptionMapper] java.lang.NullPointerException java.lang.NullPointerException at org.nuxeo.ecm.restapi.server.jaxrs.adapters.PreviewAdapter.preview(PreviewAdapter.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ObjectOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:258) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
According to my investigation, it has been introduced by NXP-27414 (when ELEMENTS-591 has been backported to 9.10) when a check on a null blob has been removed: https://github.com/nuxeo/nuxeo-ui-elements/pull/402/commits/e04245393d4ead169558705d03c6c1359bb06180#diff-b108707615ef2f8ffbb6a0010c0f718cL209
Expected behavior: no exception is logged
- is caused by
-
ELEMENTS-591 Preview issue with Video Attachment
- Resolved
- is related to
-
NXP-27414 nuxeo-document-attachments incorrect preview links
- Resolved