mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE
This commit is contained in:
@@ -44,7 +44,9 @@ public class ExternalResourcesRootsProvider implements IndexedRootsProvider {
|
||||
LocalFileSystem localFileSystem = LocalFileSystem.getInstance();
|
||||
VirtualFile extResources = localFileSystem.findFileByPath(path);
|
||||
HashSet<String> roots = new HashSet<String>(2);
|
||||
roots.add(standardSchemas.getUrl());
|
||||
if (standardSchemas != null) {
|
||||
roots.add(standardSchemas.getUrl());
|
||||
}
|
||||
if (extResources != null) {
|
||||
roots.add(extResources.getUrl());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user