package burp;


public class BHttpRequestResponseFactory {

    public static BHttpRequestResponse create(IHttpRequestResponse requestResponse,
                                              IBurpExtenderCallbacks callbacks, IExtensionHelpers helpers) {
        BHttpRequestResponse bHttpRequestResponse = new BHttpRequestResponse();
        bHttpRequestResponse.request = BHttpRequestFactory.create(0x00004242, requestResponse,
                helpers.analyzeRequest(requestResponse), callbacks);
        bHttpRequestResponse.response = BHttpResponseFactory.create(0x00004242, requestResponse,
                helpers.analyzeResponse(requestResponse.getResponse()), callbacks);
        bHttpRequestResponse.messageType = "requestResponse";
        return bHttpRequestResponse;
    }
}

@@ -326,16 +326,117 @@
 onse();%0A
+%0A%0A        if (requestResponse.getRequest() != null && requestResponse.getRequest().length %3E 0) %7B%0A    
         
@@ -530,32 +530,36 @@
                 
+    
 helpers.analyzeR
@@ -587,32 +587,144 @@
 e), callbacks);%0A
+        %7D%0A%0A        if (requestResponse.getResponse() != null && requestResponse.getResponse().length %3E 0) %7B%0A    
         bHttpReq
@@ -812,32 +812,36 @@
                 
+    
 helpers.analyzeR
@@ -884,32 +884,43 @@
 )), callbacks);%0A
+        %7D%0A%0A
         bHttpReq

Fix null response issue with sitemap