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 040887ece..417c50655 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);