From e0e52cb0110a908959f7df13c5e66bf911bad74f Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 23 Jul 2018 23:07:23 +0200 Subject: [PATCH] Fix NPE in BlameGenerator.getSourceStart() Bug: 499543 Change-Id: I99f6ebb1c3ceea20e8ca093acbe824c9f0362d45 Signed-off-by: Matthias Sohn --- org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java b/org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java index 1ad7a3055a..9cec645679 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java @@ -539,7 +539,7 @@ public class BlameGenerator implements AutoCloseable { n.beginResult(revPool); outCandidate = n; outRegion = n.regionList; - return true; + return outRegion != null; } private boolean reverseResult(Candidate parent, Candidate source) -- 2.39.5