Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in Mailer.sendMail(Email) when the Mailer(Session) constructor is used #7

Closed
GoogleCodeExporter opened this Issue Apr 17, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@GoogleCodeExporter
Copy link

commented Apr 17, 2015

When calling

    new org.codemonkey.simplejavamail.Mailer(mySession).sendMail(myEmail);

the following exception occurrs:

    Exception in thread "main" java.lang.NullPointerException
        at org.codemonkey.simplejavamail.Mailer.logSession(Mailer.java:260)
        at org.codemonkey.simplejavamail.Mailer.sendMail(Mailer.java:238)
        at MyClientCode

This is because Mailer.logSession(Session, TransportStrategy) tries to access 
members of the TransportStrategy, which was never initialized by the 
Mailer(Session) constructor.

Original issue reported on code.google.com by rodrigo....@gmail.com on 19 Sep 2012 at 6:10

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Apr 17, 2015

When will this issue (7) be completed?  Is it being worked on?  My development 
project depends on this issue being fixed or I will have to consider a 
different code path than the use of this project.

Original comment by tomlinde...@gmail.com on 1 Jul 2013 at 7:17

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Apr 17, 2015

hmm, I will have to check. Thought I fixed this long time ago. I'll get back to 
you. Sorry for the delayed response.

Original comment by b.bottema on 25 Oct 2013 at 8:31

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Apr 17, 2015

Hi guys... Any news about this issue?

Original comment by rica...@ricardopaiva.com on 20 Jan 2014 at 6:35

@bbottema bbottema closed this in 503e458 Apr 29, 2015

@bbottema bbottema added bug and removed auto-migrated labels Apr 29, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.