From 94e467c6e35581ec227129bd6738589479ccdd31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 21 May 2008 18:34:27 +0000 Subject: [PATCH] fix npe at startup --- src/de/todesbaum/jsite/main/Configuration.java | 2 +- src/de/todesbaum/jsite/main/Version.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4