Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit a5b4d65

Browse files
vjuranekpmacik
authored andcommitted
Fix NPE in EmailAlertingReporterService
1 parent 41a909d commit a5b4d65

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

web/src/main/java/org/perfrepo/web/service/EmailAlertingReporterService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ private String composeMessage(List<Alert> alerts, TestExecution testExecution) {
110110
* @return evaluated description
111111
*/
112112
private String getEvaluatedDescription(Alert alert) {
113+
if (alert.getDescription() == null || alert.getDescription().isEmpty()) {
114+
return "";
115+
}
116+
113117
ScriptEngine engine = new ScriptEngineManager().getEngineByName("JavaScript");
114118

115119
//regex pattern for ${expression}

0 commit comments

Comments
 (0)