Fixes issue 7
Merge pull request #8 from cominvent/NullpointerReaderFix

Fixes issue 7