Paper bag fix CanonicalTreeParser to throw MissingObjectException
commitdc788d7d40e5a0b1e6fce22d1c807ce137cb21e2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 6 May 2008 03:15:51 +0000 (5 23:15 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 6 May 2008 06:18:31 +0000 (6 02:18 -0400)
treebdbdf8dd49f543a4a7dd047340e02f58e1460f56
parentdd96b6e984b6e5dd7dcfd3faba3ae24e4f78a9b9
Paper bag fix CanonicalTreeParser to throw MissingObjectException

If a tree object cannot be found on disk we get a null loader
instance back from the repository.  In such a case we should
be throwing MissingObjectException to the caller, rather than
an implicit NullPointerException.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/treewalk/CanonicalTreeParser.java