-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF34, 11.4, 2021.0
-
Component/s: Core
-
Tags:
-
Backlog priority:750
-
Sprint:nxplatform #19, nxplatform #20
-
Story Points:1
In a case where blobs are added to a multivalued complex property, a NPE is thrown by BlobsExtractor#findBlobsProperties
Steps to reproduce
- Deploy the attached jar to nxserver/plugins
- Start Nuxeo and switch to the JSF view
- Go to a Workspace
- Click on the New button and choose the type VeryComplex
- For the "instances" field, add 2 values
- Fill all the fields but "Val Test" which should remain empty
- Click on the Create button
Observe that there is a NPE in the logs when MimetypeIconUpdater tries to read all the blobs.
2020-09-23T18:37:14,498 ERROR [EventServiceImpl] Exception during mimetypeIconUpdater sync listener execution, continuing to run other listeners java.lang.NullPointerException: null at org.nuxeo.ecm.core.utils.BlobsExtractor.findBlobsProperties(BlobsExtractor.java:182) ~[nuxeo-core-api-10.10-HF31.jar:?] at org.nuxeo.ecm.core.utils.BlobsExtractor.findBlobsProperties(BlobsExtractor.java:189) ~[nuxeo-core-api-10.10-HF31.jar:?] at org.nuxeo.ecm.core.utils.BlobsExtractor.getBlobsProperties(BlobsExtractor.java:154) ~[nuxeo-core-api-10.10-HF31.jar:?] at org.nuxeo.ecm.platform.filemanager.core.listener.MimetypeIconUpdater.handleEvent(MimetypeIconUpdater.java:93) ~[nuxeo-platform-filemanager-core-listener-10.10-HF31.jar:?]
Note that in other circumstances, it's also possible to crash the ZIP export.
Expected behavior: there is no exception where this document type is created.
- is related to
-
NXP-28997 Fulltext extractor should not NPE on missing blob
- Open
- Is referenced in
(2 Is referenced in)