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

Fix possible NPE in DocumentRouteElementImpl

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Workflow

      Description

      The following NPE in documentRoutingEscalation action should be handled.

      Computation: bulk/documentRoutingEscalation fails last record: bulk-documentRoutingEscalation-00:+2679717, retrying ...
      
      java.lang.NullPointerException: null
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRouteElementImpl.getDocumentRoute(DocumentRouteElementImpl.java:91) ~[nuxeo-routing-core-2021.47.4.jar:?]
      	at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.<init>(GraphNodeImpl.java:116) ~[nuxeo-routing-core-2021.47.4.jar:?]
      	at org.nuxeo.ecm.platform.routing.core.adapter.DocumentRouteAdapterFactory.getAdapter(DocumentRouteAdapterFactory.java:57) ~[nuxeo-routing-core-2021.47.4.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.findAdapter(DocumentModelImpl.java:958) ~[nuxeo-core-api-2021.47.4.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getAdapter(DocumentModelImpl.java:914) ~[nuxeo-core-api-2021.47.4.jar:?]
      	at org.nuxeo.ecm.platform.routing.core.bulk.DocumentRoutingEscalationAction$DocumentRoutingEscalationComputation.compute(DocumentRoutingEscalationAction.java:79) ~[nuxeo-routing-core-2021.47.4.jar:?]
      	at org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation.lambda$processBatchOfDocuments$3(AbstractBulkComputation.java:151) ~[nuxeo-core-bulk-2021.47.4.jar:?]
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bdelbosc Benoit Delbosc
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: