Skip to content

Commit 0b93830

Browse files
Merge pull request #249 from snyk/fix/auth-wizard-cancel-button
fix: don't attempt to update language client config if there is no language client [IDE-844]
2 parents 6d52e62 + d281c12 commit 0b93830

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)