fix NPE
authorSergey Ignatov <sergey.ignatov@jetbrains.com>
Thu, 17 Dec 2015 10:38:36 +0000 (13:38 +0300)
committerSergey Ignatov <sergey.ignatov@jetbrains.com>
Thu, 17 Dec 2015 10:38:36 +0000 (13:38 +0300)
platform/lang-impl/src/com/intellij/ide/extensionResources/ExtensionsRootType.java

index 4574fab4ce4088e2dcabce2c4e99d5e699e8305e..04cfd107e502d7d00f18a212dd07581633362eab 100644 (file)
@@ -111,7 +111,7 @@ public class ExtensionsRootType extends RootType {
     Application application = ApplicationManager.getApplication();
     for (URL bundledResourceDirUrl : bundledResources) {
       VirtualFile bundledResourcesDir = VfsUtil.findFileByURL(bundledResourceDirUrl);
-      if (!bundledResourcesDir.isDirectory()) continue;
+      if (bundledResourcesDir == null || !bundledResourcesDir.isDirectory()) continue;
 
       AccessToken token = application.acquireWriteActionLock(ExtensionsRootType.class);
       try {