diff --git a/model/notifications-api/src/main/java/com/evolveum/midpoint/notifications/api/events/TaskEvent.java b/model/notifications-api/src/main/java/com/evolveum/midpoint/notifications/api/events/TaskEvent.java index b1fe399a84e..147ff2e8e08 100644 --- a/model/notifications-api/src/main/java/com/evolveum/midpoint/notifications/api/events/TaskEvent.java +++ b/model/notifications-api/src/main/java/com/evolveum/midpoint/notifications/api/events/TaskEvent.java @@ -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();