fix an NullPointerException
Merge pull request #11 from runfriends/master

fix an NullPointerException