Null Check for Exception Handling

Null Check for Exception Handling