소스 검색

Fix NPE in PlotCommitList

Bug: 544513
Change-Id: I2fca766bbdc441a2dca947fba5dde532de7a10fd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.3.0.201903061415-rc1
Matthias Sohn 5 년 전
부모
커밋
ae79969715
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java

+ 2
- 1
org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java 파일 보기

@@ -141,7 +141,8 @@ public class PlotCommitList<L extends PlotLane> extends
final PlotCommit<L> c = currCommit.children[0];
currCommit.lane = c.lane;
Integer len = laneLength.get(currCommit.lane);
len = Integer.valueOf(len.intValue() + 1);
len = len != null ? Integer.valueOf(len.intValue() + 1)
: Integer.valueOf(0);
laneLength.put(currCommit.lane, len);
} else {
// More than one child, or our child is a merge.

Loading…
취소
저장