]> source.dussan.org Git - jgit.git/commitdiff
Fix NPE in BlameGenerator.getSourceStart() 18/126518/1
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 23 Jul 2018 21:07:23 +0000 (23:07 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 23 Jul 2018 22:41:34 +0000 (00:41 +0200)
Bug: 499543
Change-Id: I99f6ebb1c3ceea20e8ca093acbe824c9f0362d45
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java

index 1ad7a3055accc4c7d5a05444bfeca71a348ccbfc..9cec64567956fd1c83f1ed1ea45e33d55371c99b 100644 (file)
@@ -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)