incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian Holeczek (JIRA)" <j...@apache.org>
Subject [jira] Created: (JSPWIKI-166) NullPointerException when mail.from property is omitted/commented out
Date Sun, 27 Jan 2008 09:47:35 GMT
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


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message