Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4363A108D7 for ; Wed, 28 Aug 2013 12:50:54 +0000 (UTC) Received: (qmail 16036 invoked by uid 500); 28 Aug 2013 12:50:54 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 15470 invoked by uid 500); 28 Aug 2013 12:50:52 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 15410 invoked by uid 99); 28 Aug 2013 12:50:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Aug 2013 12:50:51 +0000 Date: Wed, 28 Aug 2013 12:50:51 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-6674) Add allowNull option to @Converter to allow type converters to return null as valid response for special use-cases MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Claus Ibsen created CAMEL-6674: ---------------------------------- Summary: Add allowNull option to @Converter to allow type converters to return null as valid response for special use-cases Key: CAMEL-6674 URL: https://issues.apache.org/jira/browse/CAMEL-6674 Project: Camel Issue Type: Improvement Components: camel-core Affects Versions: 2.11.1, 2.12.0 Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 2.11.2, 2.12.1 See nabble http://camel.465427.n5.nabble.com/Xpath-parameter-binding-NodeList-vs-Node-tp5738067.html This avoids the situation with the NodeList -> Node converter that may return null the 1st time, and then its regarded as a misses for conversion in future attempts. Just be annotation the method from @Converter to: @Converter(allowNull = true) Should allow to fix this. As then the type converter registry knows that a null response is valid. -- 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