From 9953e2a39e3604324103d7dc35615e3f721da36d Mon Sep 17 00:00:00 2001 From: Mathias Kinzler Date: Tue, 22 Feb 2011 09:11:42 +0100 Subject: [PATCH] Fix potential NullPointerException in PlotCommit Change-Id: Ib7f661a259561251e74337fa233036e041c42423 Signed-off-by: Mathias Kinzler --- org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java | 3 +++ 1 file changed, 3 insertions(+) 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 1e22416f2..40e6aba11 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 extends RevCommit { static final PlotLane[] NO_LANES = {}; + static final Ref[] NO_REFS = {}; + PlotLane[] passingLanes; PlotLane lane; @@ -77,6 +79,7 @@ public class PlotCommit extends RevCommit { super(id); passingLanes = NO_LANES; children = NO_CHILDREN; + refs = NO_REFS; } void addPassingLane(final PlotLane c) {