mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-96535 - NPE: UseDistributionWithSourcesNotificationProvider.showUseDistributionWithSourcesTip
This commit is contained in:
+1
-1
@@ -157,7 +157,7 @@ public class UseDistributionWithSourcesNotificationProvider extends EditorNotifi
|
||||
String distributionUri = wrapperConfiguration.getDistribution().toString();
|
||||
try {
|
||||
String host = new URI(distributionUri).getHost();
|
||||
return host.endsWith("gradle.org") && !GRADLE_SRC_DISTRIBUTION_PATTERN.matcher(distributionUri).matches();
|
||||
return host != null && host.endsWith("gradle.org") && !GRADLE_SRC_DISTRIBUTION_PATTERN.matcher(distributionUri).matches();
|
||||
}
|
||||
catch (URISyntaxException ignore) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user