Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17381

Fix NPE in DocumentBlobHolder.getHash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8.0-HF35, 6.0-HF16, 7.4
    • Component/s: Convert

      Description

      Some CMIS functional test runs (nuxeo-distribution-cap-cmis-tests) show this in the logs:

      2015-06-24 18:05:56,936 ERROR [Nuxeo-Work-default-4] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: ListenerWork(Listener updateThumbListener [scheduleThumbnailUpdate/9c01b9a2-962f-467a-9e7b-421e71019009, 
      scheduleThumbnailUpdate/5f53c843-a23c-449b-a6b2-72a102a44e5e], Progress(?%, ?/0), null)
      java.lang.NullPointerException
              at org.nuxeo.ecm.core.api.blobholder.DocumentBlobHolder.getHash(DocumentBlobHolder.java:96)
              at org.nuxeo.ecm.core.convert.cache.CacheKeyGenerator.computeKey(CacheKeyGenerator.java:39)
              at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:184)
              at org.nuxeo.ecm.platform.thumbnail.factories.ThumbnailDocumentFactory.computeThumbnail(ThumbnailDocumentFactory.java:84)
              at org.nuxeo.ecm.core.api.thumbnail.ThumbnailServiceImpl.computeThumbnail(ThumbnailServiceImpl.java:92)
              at org.nuxeo.ecm.core.api.thumbnail.ThumbnailAdapter.computeThumbnail(ThumbnailAdapter.java:57)
              at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.processDoc(UpdateThumbnailListener.java:60)
              at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.handleEvent(UpdateThumbnailListener.java:130)
              at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:170)
              at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:343)
              at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransactionAndCheckExceptions(AbstractWork.java:304)
              at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:273)
              at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:52)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: