Browse Source

Fix potential NullPointerException in PlotCommit

Change-Id: Ib7f661a259561251e74337fa233036e041c42423
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
tags/v0.12.1
Mathias Kinzler 13 years ago
parent
commit
9953e2a39e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java

+ 3
- 0
org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java View File

@@ -59,6 +59,8 @@ public class PlotCommit<L extends PlotLane> extends RevCommit {

static final PlotLane[] NO_LANES = {};

static final Ref[] NO_REFS = {};

PlotLane[] passingLanes;

PlotLane lane;
@@ -77,6 +79,7 @@ public class PlotCommit<L extends PlotLane> extends RevCommit {
super(id);
passingLanes = NO_LANES;
children = NO_CHILDREN;
refs = NO_REFS;
}

void addPassingLane(final PlotLane c) {

Loading…
Cancel
Save