incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Jalkanen (JIRA)" <>
Subject [jira] Commented: (JSPWIKI-166) NullPointerException when mail.from property is omitted/commented out
Date Sun, 27 Jan 2008 09:59:34 GMT


Janne Jalkanen commented on JSPWIKI-166:

This is a classic, dumb, mistake.  I am surprised that the IDE didn't catch this.

Should be easy enough to fix.

> NullPointerException when mail.from property is omitted/commented out
> ---------------------------------------------------------------------
>                 Key: JSPWIKI-166
>                 URL:
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.6.1
>            Reporter: Florian Holeczek
>            Priority: Minor
>             Fix For: 2.6.1
> In line 266 of
> {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
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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message