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

NPE in AbstractMailReceiver.receive()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5
    • Component/s: Mail Support
    • Labels:
      None
    • Environment:
      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

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

              Dates

              Created:
              Updated:
              Resolved: