aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java
index 040887ece4..417c506550 100644
--- a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java
+++ b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java
@@ -211,6 +211,12 @@ public class IpLogGenerator {
+ " is invalid", e);
}
+ if (meta.getProjects().isEmpty()) {
+ throw new ConfigInvalidException("Configuration file "
+ + log.getPathString() + " in commit " + commit.name()
+ + " has no projects declared.");
+ }
+
for (Project p : meta.getProjects()) {
p.setVersion(version);
projects.put(p.getName(), p);