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 authored Dec 5, 2023
1 parent d7ea4b8 commit a62ac3a
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 a62ac3a

Please sign in to comment.