« Return to the main article
Null pointer means you are referencing a variable that has no value, obviously.
Which one it is I don't know as I can't see what you've done. Try doing some
debugging. Use the line:
System.out.println( nameOfYourObject );
In various points of your code and watch the Server Console to see what they
are. My guess is that it's the SMTPHost name....