File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed
Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ class BookmarksPanel(private val callbacks: IBurpExtenderCallbacks) {
184184 val requestResponse = try {
185185 callbacks.makeHttpRequest(messageEditor.httpService, requestViewer?.message)
186186 } catch (e: java.lang.RuntimeException ) {
187- messageEditor.requestResponse
187+ RequestResponse (requestViewer?.message, null , messageEditor.httpService)
188188 }
189189 withContext(Dispatchers .Swing ) {
190190 SwingUtilities .invokeLater {
@@ -306,4 +306,34 @@ class BookmarksModel : AbstractTableModel() {
306306
307307}
308308
309+ class RequestResponse (private var req : ByteArray? , private var res : ByteArray? , private var service : IHttpService ? ) :
310+ IHttpRequestResponse {
311+
312+ override fun getComment (): String? = null
313+
314+ override fun setComment (comment : String? ) {}
315+
316+ override fun getRequest (): ByteArray? = req
317+
318+ override fun getHighlight (): String? = null
319+
320+ override fun getHttpService (): IHttpService ? = service
321+
322+ override fun getResponse (): ByteArray? = res
323+
324+ override fun setResponse (message : ByteArray? ) {
325+ res = message
326+ }
327+
328+ override fun setRequest (message : ByteArray? ) {
329+ req = message
330+ }
331+
332+ override fun setHttpService (httpService : IHttpService ? ) {
333+ service = httpService
334+ }
335+
336+ override fun setHighlight (color : String? ) {}
337+ }
338+
309339
You can’t perform that action at this time.
0 commit comments