fixed null pointer bug
Merge pull request #3 from badnack/master

fixed null pointer bug