Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6626

Search critera for toSentDate throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.1
    • 2.11.2, 2.12.0
    • camel-mail
    • Novice

    Description

      Use of searchTerm.toSentDate=now-24h (to poll only mails older than 24 hours) throws NPE. This is because MailConverters#toSearchTerm tries to build "toSentDate" criteria from "fromSentDate" value:

      if (simple.getToSentDate() != null) {
      String s = simple.getFromSentDate();
      if (s.startsWith("now")) {

      The middle line should be:

      String s = simple.getToSentDate();

      Attachments

        Activity

          People

            njiang Willem Jiang
            ales_d Ales Dolecek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified