fix NPE
authorLiana Bakradze <liana.bakradze@jetbrains.com>
Thu, 11 Feb 2016 12:34:27 +0000 (15:34 +0300)
committerLiana Bakradze <liana.bakradze@jetbrains.com>
Thu, 11 Feb 2016 12:34:27 +0000 (15:34 +0300)
python/educational-python/src/com/jetbrains/python/edu/PyCharmEduInitialConfigurator.java

index 99ae98e30d8b58c950c8342e3056cbee518a813e..4e8345bc159104a3128042f73faa56aeb2c30a92 100644 (file)
@@ -225,7 +225,7 @@ public class PyCharmEduInitialConfigurator {
                   return;
                 }
                 ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow("Project");
-                if (toolWindow.getType() != ToolWindowType.SLIDING) {
+                if (toolWindow !=null && toolWindow.getType() != ToolWindowType.SLIDING) {
                   toolWindow.activate(null);
                 }
               }