Issue #20: Fix breakage to alertViz caused by changes to

FileUtil.join().

Former-commit-id: 8832c64ba47f87027d5215caf7d84b9fc6a187cd
This commit is contained in:
David Gillingham 2012-03-01 11:19:22 -06:00
parent 94d6af30f0
commit 8a45f1f4c3

View file

@ -79,7 +79,7 @@ public class FileUtil {
for (String component : pathComponents) { for (String component : pathComponents) {
if ((fullPath.length() > 0) if ((fullPath.length() > 0)
&& (fullPath.charAt(fullPath.length() - 1) != File.separatorChar) && (fullPath.charAt(fullPath.length() - 1) != File.separatorChar)
&& (component.charAt(0) != File.separatorChar)) { && ((component.isEmpty()) || (component.charAt(0) != File.separatorChar))) {
fullPath.append(File.separatorChar); fullPath.append(File.separatorChar);
} }
fullPath.append(component); fullPath.append(component);