Null checks.  I think the whole file needs more null checks.