Protect peel_ref fallback case from NULL parse_object result
authorShawn O. Pearce <spearce@spearce.org>
Sun, 24 Feb 2008 08:07:19 +0000 (03:07 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Feb 2008 08:52:55 +0000 (00:52 -0800)
If the SHA-1 we are requesting the object for does not exist in
the object database we get a NULL back. Accessing the type from
that is not likely to succeed on any system.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found