load nodes before projects
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 3 Jun 2008 06:50:21 +0000 (08:50 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 3 Jun 2008 06:50:21 +0000 (08:50 +0200)
src/net/pterodactylus/jsite/core/CoreImpl.java

index 6628711..cd65bf4 100644 (file)
@@ -397,17 +397,17 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         */
        public void start() {
                try {
-                       projectManager.load();
-                       fireLoadingProjectsDone(projectManager.getDirectory());
-               } catch (IOException ioe1) {
-                       fireLoadingProjectsFailed(projectManager.getDirectory(), ioe1);
-               }
-               try {
                        nodeManager.load();
                        fireLoadingNodesDone(nodeManager.getDirectory());
                } catch (IOException ioe1) {
                        fireLoadingNodesFailed(nodeManager.getDirectory(), ioe1);
                }
+               try {
+                       projectManager.load();
+                       fireLoadingProjectsDone(projectManager.getDirectory());
+               } catch (IOException ioe1) {
+                       fireLoadingProjectsFailed(projectManager.getDirectory(), ioe1);
+               }
                fireCoreLoaded();
        }