X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fmain%2FConfiguration.java;h=f8acc53b9c7dce316eceb27aeab60e474fbc404f;hb=94e467c6e35581ec227129bd6738589479ccdd31;hp=64f3771f088dbc6c8ff3d1fe7c9f332c406c75f0;hpb=705ab7eee0d2b8194f6e8420ce3f588899f6da9a;p=jSite.git 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()));