Re: when i am trying to send a mail by using java mail api iam getting "NullPointerException". How to rectify that problem??
Thursday, January 31, 2002 10:20 PM
Ia m sure that U know the origin of the null pointer exception. Trace the object that is giving the NPE. U are calling some method of that class and the object is null, after tracing the object put a check for the null value and if there is a possibility of a null value for that object try not to call the method on the object.........