title: How to find the null obejct when NullPointerException is thrown
body: <p>Is there any way in java to know the name of the Class of the offending object when NullPointerException is thrown? This will help in debugging the code when the offending java statement has lot of objects which can be null.</p>