Skip to content

Commit

Permalink
Fixed NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
JGillam committed Sep 29, 2016
1 parent 7625254 commit 379f7ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/com/professionallyevil/bc/CorrelatorEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import burp.*;

import javax.swing.*;
import java.io.PrintStream;
import java.util.*;
import java.util.concurrent.ExecutionException;

Expand Down Expand Up @@ -75,7 +76,7 @@ private void firstPass(IExtensionHelpers helpers, IHttpRequestResponse[] message
publish(100 * i / messages.length);
messages[i].getHttpService();
// Analyze response for cookies
if(messages[i].getResponse().length > 0) {
if(messages[i].getResponse() != null) {
IResponseInfo responseInfo = helpers.analyzeResponse(messages[i].getResponse());
List<String> headers = responseInfo.getHeaders();
for (String header: headers){
Expand Down Expand Up @@ -211,10 +212,13 @@ protected void done() {
listener.done();
} catch (InterruptedException e) {
listener.setStatus("Interrupted Exception: " + e.getMessage());
e.printStackTrace(new PrintStream(callbacks.getStderr()));
} catch (ExecutionException e) {
listener.setStatus("Execution Exception: " + e.getMessage());
e.printStackTrace(new PrintStream(callbacks.getStderr()));
} catch (Throwable e) {
listener.setStatus(e.getMessage());
e.printStackTrace(new PrintStream(callbacks.getStderr()));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/com/professionallyevil/bc/Paramalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class Paramalyzer implements IBurpExtender, ITab, CorrelatorEngineListene
private int lastSelectedRow = -1;
private IHttpRequestResponse displayedRequest = null;

private static final String VERSION = "1.0.0";
private static final String VERSION = "1.0.1";
private static final String EXTENSION_NAME = "Paramalyzer";

public Paramalyzer() {
Expand Down

0 comments on commit 379f7ca

Please sign in to comment.