Fixes Exception to be the .NET one
Merge pull request #1 from bootis/npe-fix

Fixes Exception to be the .NET one