fixed null check bug #3

fixed bug #3