Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-1914

NPE in AbstractMailReceiver.receive()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Complete
    • 2.0.4
    • 2.0.5
    • Mail Support
    • None
    • Spring 3.0.5
      Spring-Integration 2.0.4

    Description

      Running in a NPE at executing some of my integration Tests.

      Line 245 in AbstractMailReceiver contains following code which failed:

      boolean recentFlagSupported = this.getFolder().getPermanentFlags().contains(Flags.Flag.RECENT);
      

      .getPermanentFlags().contains is failing because of my MockMail Instance is returning null for getPermanentFlags().
      This is Specification Conform which says that this Method can return null.

      Attachments

        Activity

          People

            oleg.zhurakousky@springsource.com Oleg Zhurakousky
            ahs Andreas Hartmann-Schneevoigt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: