summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-09-05 07:42:12 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2012-09-05 07:42:12 +0200
commitf590a4c6672b6f507db72b8a425f6af4873c9b71 (patch)
tree892befdb402e299af86f688de33e1715b124b5e4 /org.eclipse.jgit.pgm
parentcd23b214bf2564c0f41f7c3f89a2bf48ec308547 (diff)
downloadjgit-f590a4c6672b6f507db72b8a425f6af4873c9b71.tar.gz
jgit-f590a4c6672b6f507db72b8a425f6af4873c9b71.zip
Fix NPE when notes are present
Change-Id: If9200ae4a7f582a5562aecf323ff0430ba154583 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java
index d23cbd47ad..8543dcb916 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java
@@ -205,7 +205,7 @@ abstract class RevWalkTextBuiltin extends TextBuiltin {
return new ObjectWalk(db);
if (argWalk != null)
return argWalk;
- return new RevWalk(db);
+ return argWalk = new RevWalk(db);
}
protected int walkLoop() throws Exception {