From: David ‘Bombe’ Roden Date: Wed, 25 Aug 2010 19:11:33 +0000 (+0200) Subject: The name of the index file must not be empty if an index is to exist. X-Git-Tag: 0.10-rc1~84 X-Git-Url: https://git.pterodactylus.net/?p=jSite.git;a=commitdiff_plain;h=d61d38b719c162aca1771c4c77686c6076dc6c88 The name of the index file must not be empty if an index is to exist. --- diff --git a/src/de/todesbaum/jsite/application/ProjectInserter.java b/src/de/todesbaum/jsite/application/ProjectInserter.java index 9373fa4..c7aa8ee 100644 --- a/src/de/todesbaum/jsite/application/ProjectInserter.java +++ b/src/de/todesbaum/jsite/application/ProjectInserter.java @@ -429,7 +429,7 @@ public class ProjectInserter implements FileScannerListener, Runnable { } } String indexFile = project.getIndexFile(); - boolean hasIndexFile = (indexFile != null); + boolean hasIndexFile = (indexFile != null) && (indexFile.length() > 0); if (hasIndexFile && !project.getFileOption(indexFile).getContainer().equals("")) { checkReport.addIssue("warning.container-index", false); }