The name of the index file must not be empty if an index is to exist.
[jSite.git] / 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);
                }