check NULL
Merge pull request #134 from yinqiang/patch-4

check NULL