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=e0e52cb0110a908959f7df13c5e66bf911bad74f;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)