Skip to content

Commit fbe12a7

Browse files
author
Nakul Sabharwal
committed
Added null check on removing id in dependsOn
1 parent 2fd92f6 commit fbe12a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/microsoft/graph/content/MSBatchRequestContent.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public boolean removeBatchRequestStepWithId(String requestId) {
6363
batchRequestStepsHashMap.remove(requestId);
6464
removed = true;
6565
for(Map.Entry<String, MSBatchRequestStep> steps : batchRequestStepsHashMap.entrySet()) {
66-
while(steps.getValue().getArrayOfDependsOnIds().remove(requestId));
66+
if(steps.getValue() != null && steps.getValue().getArrayOfDependsOnIds() != null) {
67+
while(steps.getValue().getArrayOfDependsOnIds().remove(requestId));
68+
}
6769
}
6870
}
6971
return removed;

0 commit comments

Comments
 (0)