Skip to content

Commit 73cb202

Browse files
fix: NPE
1 parent 43bb8ca commit 73cb202

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/src/main/java/io/snyk/eclipse/plugin/preferences/Preferences.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ public final boolean isManagedBinaries() {
305305
}
306306

307307
public final void store(String key, String value) {
308+
if (key == null || value == null) return;
308309
if (encryptedPreferenceKeys.contains(key)) {
309310
if (isSecureStorageReady()) {
310311
try {

0 commit comments

Comments
 (0)