Created
March 29, 2017 13:51
-
-
Save dasl-/f9e33e6046484b005281ac6d4fe445e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/debezium-core/src/main/java/io/debezium/relational/topic/TopicMappers.java b/debezium-core/src/main/java/io/debezium/relational/topic/TopicMappers.java | |
index 5cdfcab..eb05251 100644 | |
--- a/debezium-core/src/main/java/io/debezium/relational/topic/TopicMappers.java | |
+++ b/debezium-core/src/main/java/io/debezium/relational/topic/TopicMappers.java | |
@@ -28,10 +28,11 @@ public TopicMappers(Configuration config, String[] topicMapperAliases) { | |
if (topicMapperAliases != null) { | |
for (String alias : topicMapperAliases) { | |
TopicMapper topicMapper = config.getInstance("topic.mappers." + alias + ".type", TopicMapper.class); | |
- if (topicMapper != null) { | |
- topicMappers.add(topicMapper); | |
- validateTopicMapperConfig(topicMapper, alias, config); | |
+ if (topicMapper == null) { | |
+ throw new ConnectException("Unable to instantiate topic mapper class for alias: " + alias); | |
} | |
+ topicMappers.add(topicMapper); | |
+ validateTopicMapperConfig(topicMapper, alias, config); | |
} | |
} | |
TopicMapper defaultTopicMapper = new ByTableTopicMapper(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment