Hoang: fix crash for nsnull object