Browse Source

Fix potential NullPointerException in PlotCommit

Change-Id: Ib7f661a259561251e74337fa233036e041c42423
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
stable-0.12
Mathias Kinzler 14 years ago
parent
commit
9953e2a39e
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java

3
org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java

@ -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