You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/06/25 07:20:17 UTC

camel git commit: camel-dozer: Fix potential NPE as target model is mandatory when using producer

Repository: camel
Updated Branches:
  refs/heads/master f9fba78ce -> 67b17a5bd


camel-dozer: Fix potential NPE as target model is mandatory when using producer


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

Branch: refs/heads/master
Commit: 67b17a5bdc6c5bcd2ac8136216422677b84d988c
Parents: f9fba78
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Jun 25 09:18:22 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Jun 25 09:18:22 2016 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/dozer/DozerProducer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/67b17a5b/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/DozerProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/DozerProducer.java b/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/DozerProducer.java
index b316197..7050225 100644
--- a/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/DozerProducer.java
+++ b/components/camel-dozer/src/main/java/org/apache/camel/component/dozer/DozerProducer.java
@@ -59,7 +59,7 @@ public class DozerProducer extends DefaultProducer {
         }
         
         // Load the target model class
-        Class<?> targetModel = endpoint.getCamelContext().getClassResolver().resolveClass(
+        Class<?> targetModel = endpoint.getCamelContext().getClassResolver().resolveMandatoryClass(
                 endpoint.getConfiguration().getTargetModel());
         
         // If an unmarshaller was used, the unmarshalled message is the OUT message.