From: Matthias Sohn Date: Mon, 23 Jul 2018 21:07:23 +0000 (+0200) Subject: Fix NPE in BlameGenerator.getSourceStart() X-Git-Tag: v5.1.0.201808281540-m3~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F18%2F126518%2F1;p=jgit.git Fix NPE in BlameGenerator.getSourceStart() Bug: 499543 Change-Id: I99f6ebb1c3ceea20e8ca093acbe824c9f0362d45 Signed-off-by: Matthias Sohn --- 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)