Github user cestella commented on a diff in the pull request:
https://github.com/apache/incubator-metron/pull/108#discussion_r62583706
--- Diff:
metron-platform/metron-enrichment/src/main/java/org/apache/metron/enrichment/bolt/EnrichmentJoinBolt.java
---
@@ -84,7 +88,7 @@ public JSONObject joinMessages(Map<String, JSONObject>
streamMessageMap) {
if(sourceType != null) {
SensorEnrichmentConfig config =
configurations.getSensorEnrichmentConfig(sourceType);
if (config != null) {
- return config.getEnrichmentFieldMap();
+ return config.getEnrichment().getFieldMap();
--- End diff --
I think that the enrichment variable is initialized, but a null check is
never a bad idea.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---