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 Jan 16, 2024
1 parent 8cae4ad commit 5bda533
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 5bda533

Please sign in to comment.