fixed null pointer when no result is returned
Merge pull request #13 from michaelwittig/bugfix

fixed null pointer when no result is returned
Merge pull request #4 from cinovo/master

merge