]> source.dussan.org Git - jgit.git/commitdiff
Fix potential NullPointerException in PlotCommit 56/2556/2
authorMathias Kinzler <mathias.kinzler@sap.com>
Tue, 22 Feb 2011 08:11:42 +0000 (09:11 +0100)
committerMathias Kinzler <mathias.kinzler@sap.com>
Tue, 22 Feb 2011 08:11:42 +0000 (09:11 +0100)
Change-Id: Ib7f661a259561251e74337fa233036e041c42423
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java

index 1e22416f2429a12d5a2c4c1a4ff0e1e16bb0ba04..40e6aba11e5b8db317ab93404f17e4c8147f38f7 100644 (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) {