-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 8.10-HF16, 9.3-SNAPSHOT
-
Component/s: Thumbnail Service
The ThumbnailDocumentFactory relies on the servlet context when trying to fetch the default icon for a document type. But, when the service is called outside of a servlet (like from a worker), then we have an NPE thrown.
We should use this code instead:
FileUtils.getResourceFileFromContext("nuxeo.war" + File.separator + icon)
- is related to
-
NXP-19733 Do not rely on JSF/Seam when retrieving thumbnails from an external app
- Resolved