prevent 'null' pointer exception
Merge pull request #3 from redeyes2015/fix_exception

prevent 'null' pointer exception <O/