camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject [7/8] git commit: Guard log statement against null obj
Date Fri, 31 Jan 2014 16:09:02 GMT
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 <janstey@gmail.com>
Authored: Fri Jan 31 12:22:49 2014 -0330
Committer: Jonathan Anstey <janstey@gmail.com>
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) {


Mime
View raw message