Skip to content

Commit 52bde80

Browse files
Merge branch 'main' into feat/add-login-button
2 parents c1829bc + 0b93830 commit 52bde80

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plugin/src/main/java/io/snyk/eclipse/plugin/wizards/SnykWizardModel.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public void resetPreferences() {
1919
Preferences.getInstance().setIsInsecure(initialUnknownCerts);
2020
Preferences.getInstance().store(Preferences.AUTH_TOKEN_KEY, initialAuthToken);
2121

22-
SnykExtendedLanguageClient.getInstance().updateConfiguration();
22+
SnykExtendedLanguageClient client = SnykExtendedLanguageClient.getInstance();
23+
// The language client may be null when the extension first loads, so only update configuration if we are able.
24+
if (client != null) {
25+
client.updateConfiguration();
26+
};
2327
}
2428
}

0 commit comments

Comments
 (0)