Skip to content

Commit

Permalink
Fix NPE in stalled tasks watcher
Browse files Browse the repository at this point in the history
The problem was for generic tasks (with no handler URI).
  • Loading branch information
mederly committed Sep 16, 2021
1 parent f31e15a commit 6f22b4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1731,8 +1731,8 @@ public Long getNextRunStartTime(OperationResult result) {
}

public TaskHandler getHandler() {
String handlerUri = getHandlerUri();
return handlerUri != null ? beans.handlerRegistry.getHandler(handlerUri) : null;
return beans.handlerRegistry.getHandler(
getHandlerUri());
}

@Override
Expand Down

0 comments on commit 6f22b4e

Please sign in to comment.