check nil pointer.
1.4.5