How To Handle Null Pointer In Java