EasyBeans

NPE in Mail component

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: EasyBeans 1.0 RC2
  • Fix Version/s: EasyBeans 1.0 RC3
  • Component/s: None
  • Description:
    Hide
    I d'like to setup only a session mail factory (no mimepart)

    I add in my easybeans.xml
    <mail>
       <session name="javax.mail.Session" jndiName="MailSession">
          <!-- Example of properties -->
          <property name="mail.debug" value="true" />
       </session>
    </mail>

    And I got an NPE, until I add mimepart factory

        /**
         * @return list of factories.
         */
        public List<MailItf> getAllFactories() {
            List<MailItf> factories = new ArrayList<MailItf>();
            factories.addAll(sessionFactories);
            factories.addAll(mimePartFactories);
            return factories;
        }

    but mimePartFactories is null so I got an NPE.

    Thx
    Show
    I d'like to setup only a session mail factory (no mimepart) I add in my easybeans.xml <mail>    <session name="javax.mail.Session" jndiName="MailSession">       <!-- Example of properties -->       <property name="mail.debug" value="true" />    </session> </mail> And I got an NPE, until I add mimepart factory     /**      * @return list of factories.      */     public List<MailItf> getAllFactories() {         List<MailItf> factories = new ArrayList<MailItf>();         factories.addAll(sessionFactories);         factories.addAll(mimePartFactories);         return factories;     } but mimePartFactories is null so I got an NPE. Thx

Activity

Hide
Florent BENOIT added a comment - 04/Feb/08 9:58 PM
Thanks for the report
Fixed in the current SVN tree
Show
Florent BENOIT added a comment - 04/Feb/08 9:58 PM Thanks for the report Fixed in the current SVN tree

People

Dates

  • Created:
    30/Jan/08 12:08 PM
    Updated:
    04/Feb/08 9:58 PM
    Resolved:
    04/Feb/08 9:58 PM