Skip to content

Commit

Permalink
bugfix CalculateAlarm execAlertExpression NPE (#1388)
Browse files Browse the repository at this point in the history
Signed-off-by: tomsun28 <tomsun28@outlook.com>
  • Loading branch information
tomsun28 committed Dec 5, 2023
1 parent 595ccd1 commit b417670
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ private boolean execAlertExpression(Map<String, Object> fieldValueMap, String ex
} catch (Exception e) {
log.error("Alert Define Rule: {} Run Error: {}.", e, e.getMessage());
}
return match;
return match != null && match;
}

private void handlerAvailableMetrics(long monitorId, String app, CollectRep.MetricsData metricsData) {
Expand Down

0 comments on commit b417670

Please sign in to comment.