remove subversion $Id$ tags
[jSite.git] / src / de / todesbaum / jsite / main / Configuration.java
index 64f3771..100f175 100644 (file)
@@ -42,8 +42,7 @@ import de.todesbaum.util.xml.SimpleXML;
 import de.todesbaum.util.xml.XML;
 
 /**
- * @author David Roden <droden@gmail.com>
- * @version $Id$
+ * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
  */
 public class Configuration {
 
@@ -241,7 +240,7 @@ public class Configuration {
                                        project.setLocalPath(projectNode.getNode("local-path").getValue());
                                        project.setName(projectNode.getNode("name").getValue());
                                        project.setPath(projectNode.getNode("path").getValue());
-                                       if (project.getPath().indexOf("/") != -1) {
+                                       if ((project.getPath() != null) && (project.getPath().indexOf("/") != -1)) {
                                                project.setPath(project.getPath().replaceAll("/", ""));
                                        }
                                        project.setEdition(Integer.parseInt(projectNode.getNode("edition").getValue()));