Author: bombe
Date: 2008-05-21 18:34:27 +0000 (Wed, 21 May 2008)
New Revision: 20022
Modified:
trunk/apps/jSite/src/de/todesbaum/jsite/main/Configuration.java
trunk/apps/jSite/src/de/todesbaum/jsite/main/Version.java
Log:
fix npe at startup
Modified: trunk/apps/jSite/src/de/todesbaum/jsite/main/Configuration.java
===================================================================
--- trunk/apps/jSite/src/de/todesbaum/jsite/main/Configuration.java
2008-05-21 16:57:01 UTC (rev 20021)
+++ trunk/apps/jSite/src/de/todesbaum/jsite/main/Configuration.java
2008-05-21 18:34:27 UTC (rev 20022)
@@ -241,7 +241,7 @@
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()));
Modified: trunk/apps/jSite/src/de/todesbaum/jsite/main/Version.java
===================================================================
--- trunk/apps/jSite/src/de/todesbaum/jsite/main/Version.java 2008-05-21
16:57:01 UTC (rev 20021)
+++ trunk/apps/jSite/src/de/todesbaum/jsite/main/Version.java 2008-05-21
18:34:27 UTC (rev 20022)
@@ -25,7 +25,7 @@
*/
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;