NPE fix (IDEA-164074) appcode/171.1033 clion/171.1031 dbe/171.1028 idea/171.1030 phpstorm/171.1035 pycharm/171.1027 pycharm/171.1034 pycharm/171.1038 pycharm/171.1039 rubymine/171.1029 webstorm/171.1037
authorMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Wed, 16 Nov 2016 22:53:19 +0000 (23:53 +0100)
committerMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Wed, 16 Nov 2016 22:53:19 +0000 (23:53 +0100)
platform/lang-impl/src/com/intellij/ide/projectView/impl/ProjectViewImpl.java

index 55e45c235803b089e1fe838bab33af7dd1d885ff..901c45c589cad909600095d9ff175669643c6e6f 100644 (file)
@@ -522,6 +522,7 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
   }
 
   private void createToolbarActions() {
+    if (myActionGroup == null) return;
     List<AnAction> titleActions = ContainerUtil.newSmartList();
     myActionGroup.removeAll();
     if (ProjectViewDirectoryHelper.getInstance(myProject).supportsFlattenPackages()) {