Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E89B010B10 for ; Fri, 31 Jan 2014 16:09:08 +0000 (UTC) Received: (qmail 10606 invoked by uid 500); 31 Jan 2014 16:09:04 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 10229 invoked by uid 500); 31 Jan 2014 16:08:58 -0000 Mailing-List: contact commits-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 commits@camel.apache.org Received: (qmail 10118 invoked by uid 99); 31 Jan 2014 16:08:57 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jan 2014 16:08:56 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 6BF93917D6F; Fri, 31 Jan 2014 16:08:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: janstey@apache.org To: commits@camel.apache.org Date: Fri, 31 Jan 2014 16:09:02 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [7/8] git commit: Guard log statement against null obj Guard log statement against null obj Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/62ffa329 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/62ffa329 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/62ffa329 Branch: refs/heads/camel-2.10.x Commit: 62ffa329263e377be20d15412f9d324dfa451aa9 Parents: d6ccae1 Author: Jonathan Anstey Authored: Fri Jan 31 12:22:49 2014 -0330 Committer: Jonathan Anstey Committed: Fri Jan 31 12:36:58 2014 -0330 ---------------------------------------------------------------------- .../java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/62ffa329/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java ---------------------------------------------------------------------- diff --git a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java index 52d2150..472a1eb 100755 --- a/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java +++ b/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyCsvFactory.java @@ -250,7 +250,8 @@ public class BindyCsvFactory extends BindyAbstractFactory implements BindyFactor if (model.containsKey(clazz.getName())) { Object obj = model.get(clazz.getName()); - if (LOG.isDebugEnabled()) { + + if (obj != null && LOG.isDebugEnabled()) { LOG.debug("Model object: {}, class: {}", obj, obj.getClass().getName()); } if (obj != null) {