Skip to content

Commit

Permalink
Merge pull request #1363 from akto-api-security/hotfix/private_variab…
Browse files Browse the repository at this point in the history
…le_context_issue_fix

handling npe while skipping-reason-stringbuilder for private_variable_context/regex
  • Loading branch information
shivam-rawat-akto authored Aug 17, 2024
2 parents ed66cc3 + 43c9189 commit 105cdd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ public Object resolveResponseHeader(FilterActionRequest filterActionRequest, Boo
public DataOperandsFilterResponse evaluatePrivateVariables(FilterActionRequest filterActionRequest) {

List<BasicDBObject> 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);
Expand Down

0 comments on commit 105cdd2

Please sign in to comment.