-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 2021, 2023.x
-
Component/s: Aspera Connector
-
Tags:
-
Backlog priority:500
A client is asking for a small change to be made to the work method of the AsperaCompleteWork class:
diff --git a/nuxeo-aspera-core/src/main/java/com/nuxeo/aspera/connector/service/AsperaCompleteWork.java b/nuxeo-aspera-core/src/main/java/com/nuxeo/aspera/connector/service/AsperaCompleteWork.java index c6530d7b..1fbba42d 100644 --- a/nuxeo-aspera-core/src/main/java/com/nuxeo/aspera/connector/service/AsperaCompleteWork.java +++ b/nuxeo-aspera-core/src/main/java/com/nuxeo/aspera/connector/service/AsperaCompleteWork.java @@ -92,6 +92,10 @@ public class AsperaCompleteWork extends AbstractWork { newTransaction(TRANSACTION_TIMEOUT); Object docFile = bmExecute(); + if (docFile == null) { + //ignore; + return; + } if (!(docFile instanceof DocumentModel)) { throw new NuxeoException(