stupid mistake, fixing NPE
Merge pull request #26 from RAlmada/master

stupid mistake, fixing NPE