fix exception on first startup of CE
authorDmitry Jemerov <yole@jetbrains.com>
Tue, 29 Sep 2009 13:21:13 +0000 (17:21 +0400)
committerDmitry Jemerov <yole@jetbrains.com>
Tue, 29 Sep 2009 13:21:13 +0000 (17:21 +0400)
platform/platform-main/src/com/intellij/idea/MainImpl.java

index 8da470cd0be86764609fee9d9675021f08d83122..3a383e73b2e07408428acd2648e1660102454283 100644 (file)
@@ -87,12 +87,12 @@ public class MainImpl {
   }
 
   private static void startApplication(final String[] args) {
-    if (runStartupWizard) {
-      StartupUtil.runStartupWizard();
-    }
-    final IdeaApplication app = new IdeaApplication(args);
     SwingUtilities.invokeLater(new Runnable() {
       public void run() {
+        if (runStartupWizard) {
+          StartupUtil.runStartupWizard();
+        }
+        final IdeaApplication app = new IdeaApplication(args);
         app.run();
       }
     });