camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David J. M. Karlsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6626) Search critera for toSentDate throws NPE
Date Mon, 12 Aug 2013 18:26:48 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-6626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13737168#comment-13737168
] 

David J. M. Karlsen commented on CAMEL-6626:
--------------------------------------------

I've updated the branch.
                
> Search critera for toSentDate throws NPE
> ----------------------------------------
>
>                 Key: CAMEL-6626
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6626
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 2.11.1
>            Reporter: Ales Dolecek
>              Labels: easyfix
>             Fix For: 2.11.2, 2.12.0
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> 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();

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message