camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-9710: Avoid NPE as the class is mandatory
Date Tue, 15 Mar 2016 19:53:26 GMT
Repository: camel
Updated Branches:
  refs/heads/master 6f916d800 -> 927bb8a4c


CAMEL-9710: Avoid NPE as the class is mandatory


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/927bb8a4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/927bb8a4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/927bb8a4

Branch: refs/heads/master
Commit: 927bb8a4ce19d72c016a4653bc5e93dd4ab61102
Parents: 6f916d8
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Mar 15 20:53:18 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Mar 15 20:53:18 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/dozer/CustomMapper.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/927bb8a4/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/CustomMapper.java
----------------------------------------------------------------------
diff --git a/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/CustomMapper.java
b/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/CustomMapper.java
index b26cd73..5924706 100644
--- a/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/CustomMapper.java
+++ b/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/CustomMapper.java
@@ -105,9 +105,9 @@ public class CustomMapper extends BaseConverter {
         }
 
         Object customObj;
-        Method method = null;
+        Method method;
         try {
-            Class<?> customClass = resolver.resolveClass(className);
+            Class<?> customClass = resolver.resolveMandatoryClass(className);
             customObj = customClass.newInstance();
 
             // If a specific mapping operation has been supplied use that


Mime
View raw message