fix the null pointer problem
fix the null pointer problem
Merge pull request #251 from wangbin579/master

Null pointer value stored to 'p'