BUG before use object's property check it to make sure it is not NULL.
Merge pull request #40 from normann/master

BUG before use object's property check to make sure it is not NULL.