NPE fix (IDEA-164074)
[idea/community.git] / 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()) {