Browse Source

Fix NPE in BlameGenerator.getSourceStart()

Bug: 499543
Change-Id: I99f6ebb1c3ceea20e8ca093acbe824c9f0362d45
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.1
Matthias Sohn 6 years ago
parent
commit
e0e52cb011
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java

2
org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java

@ -539,7 +539,7 @@ public class BlameGenerator implements AutoCloseable {
n.beginResult(revPool); n.beginResult(revPool);
outCandidate = n; outCandidate = n;
outRegion = n.regionList; outRegion = n.regionList;
return true; return outRegion != null;
} }
private boolean reverseResult(Candidate parent, Candidate source) private boolean reverseResult(Candidate parent, Candidate source)

Loading…
Cancel
Save