You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Florian Holeczek (JIRA)" <ji...@apache.org> on 2011/09/11 01:25:08 UTC

[jira] [Closed] (JSPWIKI-166) NullPointerException when mail.from property is omitted/commented out

     [ https://issues.apache.org/jira/browse/JSPWIKI-166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florian Holeczek closed JSPWIKI-166.
------------------------------------


> NullPointerException when mail.from property is omitted/commented out
> ---------------------------------------------------------------------
>
>                 Key: JSPWIKI-166
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-166
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.6.1
>            Reporter: Florian Holeczek
>            Priority: Minor
>             Fix For: 2.6.1
>
>         Attachments: 20080127-patch.txt
>
>
> In line 266 of MailUtil.java:
> {code}String from = engine.getWikiProperties().getProperty( PROP_MAIL_SENDER ).trim();{code}
> If this property isn't defined, getProperty returns null.
> Apart from fixing this, it would be fine to redesign the comments in jspwiki.properties and let the admin know that mail.from must be defined in each case, whether jndi mail or custom mail is defined.
> Hint to a more general approach:
> I've seen that Properties can have a set of default properties. Doesn't JSPWiki use this feature?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira