From 43c9189c2b8e7583d84d08fc4227c33124336563 Mon Sep 17 00:00:00 2001 From: shivamrawat101192 Date: Sat, 17 Aug 2024 13:44:39 +0530 Subject: [PATCH] handling npe for skipping reason stringbuilder --- .../src/main/java/com/akto/test_editor/filter/FilterAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/testing/src/main/java/com/akto/test_editor/filter/FilterAction.java b/apps/testing/src/main/java/com/akto/test_editor/filter/FilterAction.java index 6e765666e3..c3f3a244af 100644 --- a/apps/testing/src/main/java/com/akto/test_editor/filter/FilterAction.java +++ b/apps/testing/src/main/java/com/akto/test_editor/filter/FilterAction.java @@ -1113,7 +1113,7 @@ public Object resolveResponseHeader(FilterActionRequest filterActionRequest, Boo public DataOperandsFilterResponse evaluatePrivateVariables(FilterActionRequest filterActionRequest) { List privateValues = new ArrayList<>(); - StringBuilder vulnerabilityReasonString = null; + StringBuilder vulnerabilityReasonString = new StringBuilder(); if (filterActionRequest.getOperand().equalsIgnoreCase(TestEditorEnums.DataOperands.REGEX.toString())) { if (filterActionRequest.getContextEntities() == null) { return new DataOperandsFilterResponse(false, null, filterActionRequest.getContextEntities(), null);