From 74777bcd4f9c20c34ef0941591bc219d80349272 Mon Sep 17 00:00:00 2001 From: Nils Christian Ehmke <nie@informatik.uni-kiel.de> Date: Fri, 18 May 2012 19:47:39 +0200 Subject: [PATCH] Removed a bug which occurred for invalid projects. --- .../session/CurrentWorkSpaceProjectBean.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/session/CurrentWorkSpaceProjectBean.java b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/session/CurrentWorkSpaceProjectBean.java index 1582a283..360accae 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/session/CurrentWorkSpaceProjectBean.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/session/CurrentWorkSpaceProjectBean.java @@ -131,14 +131,17 @@ public final class CurrentWorkSpaceProjectBean { // Remember the given parameters this.project = project; this.projectName = projectName; - // Remember the current time! This is important for the later comparison of the time stamps. - this.resetTimeStamp(); - // Update the class loader - this.reloadClassLoader(); - // Add the libraries within the lib-folder to the current model - this.addLibrariesToModel(); - // Load the available readers, filters and repositories - this.loadToolPalette(); + + if (this.project != null) { + // Remember the current time! This is important for the later comparison of the time stamps. + this.resetTimeStamp(); + // Update the class loader + this.reloadClassLoader(); + // Add the libraries within the lib-folder to the current model + this.addLibrariesToModel(); + // Load the available readers, filters and repositories + this.loadToolPalette(); + } // Now deliver the correct navigation page return (this.project != null) ? CurrentWorkSpaceProjectBean.PAGE_PROJECT_WORK_SPACE : ""; -- GitLab