From: David ‘Bombe’ Roden Date: Fri, 30 May 2008 15:12:04 +0000 (+0200) Subject: fix complete bash of base file X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7cf2b3c673183facb7e6f19ec59ec39822762525;p=jSite2.git fix complete bash of base file --- diff --git a/src/net/pterodactylus/jsite/project/Project.java b/src/net/pterodactylus/jsite/project/Project.java index 4c1a368..0e96b9c 100644 --- a/src/net/pterodactylus/jsite/project/Project.java +++ b/src/net/pterodactylus/jsite/project/Project.java @@ -419,7 +419,7 @@ public class Project extends AbstractBean { completePath.insert(0, currentProjectFile.getName()).insert(0, File.separatorChar); currentProjectFile = currentProjectFile.parentProjectFile; } - return completePath.toString(); + return (completePath.length() > 0) ? completePath.substring(1) : ""; } /**