diff options
Diffstat (limited to 'org.eclipse.jgit.junit/src/org')
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java index a299d144d4..371e139a88 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java @@ -887,9 +887,8 @@ public class TestRepository<R extends Repository> { branch = b; Ref ref = db.getRef(branch.ref); - if (ref != null) { + if (ref != null && ref.getObjectId() != null) parent(pool.parseCommit(ref.getObjectId())); - } } CommitBuilder(CommitBuilder prior) throws Exception { |