Fix potential NullPointerException in PlotCommit

Change-Id: Ib7f661a259561251e74337fa233036e041c42423
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java
index 1e22416..40e6aba 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java
+++ b/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 @@ protected PlotCommit(final AnyObjectId id) {
 		super(id);
 		passingLanes = NO_LANES;
 		children = NO_CHILDREN;
+		refs = NO_REFS;
 	}
 
 	void addPassingLane(final PlotLane c) {