]> source.dussan.org Git - jgit.git/commitdiff
Fix NPE when notes are present 47/7347/3
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 5 Sep 2012 05:42:12 +0000 (07:42 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 5 Sep 2012 05:42:12 +0000 (07:42 +0200)
Change-Id: If9200ae4a7f582a5562aecf323ff0430ba154583
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

index d23cbd47ad4963b00db89143ad7e092d06fba712..8543dcb91698b16df99dca5343961466b2d7c7ec 100644 (file)
@@ -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 {