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

Fix possible NPE in AbstractRenditionBuilderWork cleanup

    XMLWordPrintable

    Details

    • Release Notes Summary:
      AbstractRenditionBuilderWork cleanup is safer.
    • Backlog priority:
      900
    • Sprint:
      nxplatform 11.1.11
    • Story Points:
      2

      Description

      Any org.nuxeo.ecm.core.work.api.Work#cleanUp implementation should expect that session can be null especially in case of cleanup after an error.

      2019-06-04 14:27:00,243 ERROR [renditionBuilderPool-02,in:1,inCheckpoint:0,out:0,lastRead:1559658259838,lastTimer:0,wm:204427527429685249,loop:6827,checkpoint] [org.nuxeo.lib.stream.computation.log.ComputationRunner] renditionBuilder: Exception in processLoop: null
      java.lang.NullPointerException
          at org.nuxeo.ecm.platform.rendition.lazy.AbstractRenditionBuilderWork.cleanUp(AbstractRenditionBuilderWork.java:136)
          at org.nuxeo.ecm.work.WorkComputation.processRecord(WorkComputation.java:129)
          at org.nuxeo.lib.stream.computation.log.ComputationRunner.processRecord(ComputationRunner.java:285)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h