The name of the index file must not be empty if an index is to exist.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 25 Aug 2010 19:11:33 +0000 (21:11 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 25 Aug 2010 19:18:33 +0000 (21:18 +0200)
src/de/todesbaum/jsite/application/ProjectInserter.java

index 9373fa4..c7aa8ee 100644 (file)
@@ -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);
                }