From c628d0d84b0c29165b133788c32bcd51b02f9aaa Mon Sep 17 00:00:00 2001 From: fhaag95 Date: Fri, 19 Jul 2024 14:23:06 +0200 Subject: [PATCH 1/3] Increase version for next release --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ed56f26..318a6ba 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 de.usd.CSTC CSTC - 1.3.2 + 1.3.3 CSTC CSTC From 09dc4af5ed559f51c61a6b58d5a4314c69984539 Mon Sep 17 00:00:00 2001 From: Felix Buschbeck Date: Tue, 30 Jul 2024 11:14:09 +0200 Subject: [PATCH 2/3] Fix Null Pointer Exception --- .../burp/MyExtensionProvidedHttpRequestEditor.java | 13 +++---------- src/main/java/burp/MyHttpRequestEditorProvider.java | 8 +++++++- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/main/java/burp/MyExtensionProvidedHttpRequestEditor.java b/src/main/java/burp/MyExtensionProvidedHttpRequestEditor.java index 76ba9de..f299c4a 100644 --- a/src/main/java/burp/MyExtensionProvidedHttpRequestEditor.java +++ b/src/main/java/burp/MyExtensionProvidedHttpRequestEditor.java @@ -25,16 +25,9 @@ public class MyExtensionProvidedHttpRequestEditor implements ExtensionProvidedHt MyExtensionProvidedHttpRequestEditor(EditorCreationContext creationContext, View view) { - if(creationContext.toolSource().isFromTool(ToolType.REPEATER)) { - this.api = BurpUtils.getInstance().getApi(); - this.view = view; - requestEditor = api.userInterface().createRawEditor(EditorOptions.READ_ONLY); - } - else { - this.api = null; - this.view = null; - this.requestEditor = null; - } + this.api = BurpUtils.getInstance().getApi(); + this.view = view; + requestEditor = api.userInterface().createRawEditor(EditorOptions.READ_ONLY); } @Override diff --git a/src/main/java/burp/MyHttpRequestEditorProvider.java b/src/main/java/burp/MyHttpRequestEditorProvider.java index 94b3253..ecb3fc0 100644 --- a/src/main/java/burp/MyHttpRequestEditorProvider.java +++ b/src/main/java/burp/MyHttpRequestEditorProvider.java @@ -1,6 +1,7 @@ package burp; import burp.api.montoya.MontoyaApi; +import burp.api.montoya.core.ToolType; import burp.api.montoya.ui.editor.extension.EditorCreationContext; import burp.api.montoya.ui.editor.extension.ExtensionProvidedHttpRequestEditor; import burp.api.montoya.ui.editor.extension.HttpRequestEditorProvider; @@ -17,6 +18,11 @@ class MyHttpRequestEditorProvider implements HttpRequestEditorProvider @Override public ExtensionProvidedHttpRequestEditor provideHttpRequestEditor(EditorCreationContext creationContext) { - return new MyExtensionProvidedHttpRequestEditor(creationContext, view); + if(creationContext.toolSource().isFromTool(ToolType.REPEATER)) { + return new MyExtensionProvidedHttpRequestEditor(creationContext, view); + } + else { + return null; + } } } \ No newline at end of file From 5c798c5f1db03b92169e696a1edccb09f9875234 Mon Sep 17 00:00:00 2001 From: Felix Buschbeck Date: Tue, 30 Jul 2024 11:25:02 +0200 Subject: [PATCH 3/3] Add version 1.3.3 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c9e35f..5564448 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.3] - 2024-07-30 + +### Fixed + +* Fix Null Pointer Exception on startup + + ## [1.3.2] - 2024-07-16 ### Added