Fix potential NullPointerException in RevWalk.parseTree
commit62ea906ee750fd866ab88e100b2b9186f5db3508
authorShawn O. Pearce <spearce@spearce.org>
Thu, 4 Sep 2008 23:42:15 +0000 (4 16:42 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 7 Sep 2008 21:24:09 +0000 (7 23:24 +0200)
tree770e5131d66fa1c7d95b6833828dae834047fd59
parent2a5c87e83efda1a704ea03d9a70f392923c5328b
Fix potential NullPointerException in RevWalk.parseTree

If we have previously obtained this RevTree by lookupTree (such as
in a commit) but we are missing in the repository and call parseTree
we want a MissingObjectException to be thrown, not an NPE.  The NPE
tells us nothing and could be the same as a bug internal to RevWalk.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevWalk.java