Skip to content

Commit

Permalink
fixed: the OctaneSDK's defaultRest-client might not have been initial…
Browse files Browse the repository at this point in the history
…ized: call obtainClient to trigger Octane to create it;
  • Loading branch information
ralfhergert committed Dec 11, 2017
1 parent 9c87c5a commit 41acb59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public GoPluginApiResponse handle(GoPluginApiRequest request) throws UnhandledRe
issues.add(new ValidationIssue("serverURL", "Could not connect to Octane. Response: " + response.getStatus() + " " + response.getBody()));
}
// if this point is reached the configuration seems valid. notify the SDK about the new config.
OctaneSDK.getInstance().getRestService().obtainClient(); // make sure the default client exists.
OctaneSDK.getInstance().getConfigurationService().notifyChange();
} catch (IllegalArgumentException|IOException e) {
issues.add(new ValidationIssue("serverURL", "Could not connect to Octane. Exception thrown: " + e));
Expand Down

0 comments on commit 41acb59

Please sign in to comment.