aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2011-02-22 10:45:51 -0500
committerCode Review <codereview-daemon@eclipse.org>2011-02-22 10:45:51 -0500
commit5bf3df5e1d001e4f44a91e7b87b380ce59e7705d (patch)
tree6f5a19fd2b7c7e53f990df8a0a94eda948a642a9 /org.eclipse.jgit
parent8f865bfffed575c3a4db6d7db92dc5f752f97237 (diff)
parent9953e2a39e3604324103d7dc35615e3f721da36d (diff)
downloadjgit-5bf3df5e1d001e4f44a91e7b87b380ce59e7705d.tar.gz
jgit-5bf3df5e1d001e4f44a91e7b87b380ce59e7705d.zip
Merge "Fix potential NullPointerException in PlotCommit"
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java3
1 files changed, 3 insertions, 0 deletions
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 1e22416f24..40e6aba11e 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 @@ public class PlotCommit<L extends PlotLane> extends RevCommit {
super(id);
passingLanes = NO_LANES;
children = NO_CHILDREN;
+ refs = NO_REFS;
}
void addPassingLane(final PlotLane c) {