Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x fcffe3e63 -> 19c0a0921


CAMEL-10637: Throw IllegalStateException with a correct exception message


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

Branch: refs/heads/camel-2.17.x
Commit: 19c0a09219d0421a3aa9561f6464a92f3165ed9c
Parents: fcffe3e
Author: JC <[email protected]>
Authored: Thu Dec 22 06:32:57 2016 -0500
Committer: Andrea Cosentino <[email protected]>
Committed: Thu Dec 22 13:18:12 2016 +0100

----------------------------------------------------------------------
 .../camel/component/ignite/messaging/IgniteMessagingEndpoint.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/19c0a092/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java
----------------------------------------------------------------------
diff --git 
a/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java
 
b/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java
index ca375f2..124d4c7 100644
--- 
a/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java
+++ 
b/components/camel-ignite/src/main/java/org/apache/camel/component/ignite/messaging/IgniteMessagingEndpoint.java
@@ -76,7 +76,7 @@ public class IgniteMessagingEndpoint extends 
AbstractIgniteEndpoint {
     public Consumer createConsumer(Processor processor) throws Exception {
         // Validate options.
         if (topic == null) {
-            new IllegalStateException("Cannot initialize an Ignite Messaging 
Producer with a null topic.");
+            throw new IllegalStateException("Cannot initialize an Ignite 
Messaging Consumer with a null topic.");
         }
 
         // Initialize the Consumer.

Reply via email to