Skip to content

Commit

Permalink
Fixed MID-4121 (NullPointer when approverExpression returns null)
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Aug 25, 2017
1 parent b499aa8 commit 3b64c28
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -91,7 +91,8 @@ public boolean isStatusType(EventStatusType eventStatusType) {
if (eventStatusType == null) {
return false;
}
if (taskRunResult == null) {
if (taskRunResult == null || taskRunResult.getOperationResult() == null) {
// TODO consider if we really want to return 'true' for both success and in_progress here
return eventStatusType == EventStatusType.SUCCESS || eventStatusType == EventStatusType.ALSO_SUCCESS || eventStatusType == EventStatusType.IN_PROGRESS;
}
OperationResult result = taskRunResult.getOperationResult();
Expand Down

0 comments on commit 3b64c28

Please sign in to comment.