LPS-51401 Throw an IllegalArguementException instead of allowing the Nul...

...lPointerException possibility