Removed redundant String initialization
Exception changed to NullPointerException