Corrected the NPE message
Merge pull request #1269 from santoshbmath/patch-2

Corrected the NPE message