fix npe at startup 0.4.11.1
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 21 May 2008 18:34:27 +0000 (18:34 +0000)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 21 May 2008 18:34:27 +0000 (18:34 +0000)
src/de/todesbaum/jsite/main/Configuration.java
src/de/todesbaum/jsite/main/Version.java

index 64f3771..f8acc53 100644 (file)
@@ -241,7 +241,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()));
index fc301f8..0c08f19 100644 (file)
@@ -25,7 +25,7 @@ package de.todesbaum.jsite.main;
  */
 public class Version {
 
-       private static final String VERSION = "0.4.11";
+       private static final String VERSION = "0.4.11.1";
 
        public static final String getVersion() {
                return VERSION;