From: David ‘Bombe’ Roden Date: Wed, 21 May 2008 18:34:27 +0000 (+0000) Subject: fix npe at startup X-Git-Tag: 0.4.11.1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=59eceefb610f13675e76111d8a723e4043d893b0;p=jSite.git fix npe at startup --- diff --git a/src/de/todesbaum/jsite/main/Configuration.java b/src/de/todesbaum/jsite/main/Configuration.java index 64f3771..f8acc53 100644 --- a/src/de/todesbaum/jsite/main/Configuration.java +++ b/src/de/todesbaum/jsite/main/Configuration.java @@ -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())); diff --git a/src/de/todesbaum/jsite/main/Version.java b/src/de/todesbaum/jsite/main/Version.java index fc301f8..0c08f19 100644 --- a/src/de/todesbaum/jsite/main/Version.java +++ b/src/de/todesbaum/jsite/main/Version.java @@ -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;