Skip to content

Commit b6de16c

Browse files
committed
export import settings
1 parent c2b9a2a commit b6de16c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ide-common/src/main/java/org/digma/intellij/plugin/settings/SettingsUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ static void validateSettings(SettingsComponent settingsComponent) throws Configu
3131
if (settingsComponent.getApiUrl().isBlank()) {
3232
throw new ConfigurationException("Api url can not be empty");
3333
}
34-
if (!CommonUtils.isHttpsUrl(settingsComponent.getApiUrl())) {
35-
throw new ConfigurationException("Api url schema must be https");
36-
}
3734
try {
3835
URLValidator.create(settingsComponent.getApiUrl()).validate();
3936
} catch (MalformedURLException | URISyntaxException | URLValidator.InvalidUrlException | URLValidator.QueryNotAllowedException |
4037
URLValidator.IncorrectSchemaException e) {
4138
throw new ConfigurationException("Api url is not a well formed: " + e.getMessage());
4239
}
40+
if (!CommonUtils.isHttpsUrl(settingsComponent.getApiUrl())) {
41+
throw new ConfigurationException("Api url schema must be https");
42+
}
4343

4444
if (settingsComponent.getRuntimeObservabilityBackendUrl().isBlank()) {
4545
throw new ConfigurationException("Runtime observability url can not be empty");

0 commit comments

Comments
 (0)