Skip to content

Commit

Permalink
fix: handle npe on javaserverfacestraversal plugin test
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmila committed Nov 22, 2015
1 parent 70661e6 commit 0e09df7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ public List<IScanIssue> scan(IBurpExtenderCallbacks callbacks, IHttpRequestRespo

//get the body of the response
byte[] responseBytes = checkRequestResponse.getResponse();

if (responseBytes == null){
return issues;
}

String response = helpers.bytesToString(responseBytes);

// check the pattern on response body
Expand Down

0 comments on commit 0e09df7

Please sign in to comment.