naddym commented on a change in pull request #5083:
URL: https://github.com/apache/nifi/pull/5083#discussion_r635419567



##########
File path: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/FlattenJson.java
##########
@@ -157,25 +203,36 @@ public void onTrigger(final ProcessContext context, final 
ProcessSession session
         final String mode = context.getProperty(FLATTEN_MODE).getValue();
         final FlattenMode flattenMode = getFlattenMode(mode);
 
-        String separator = 
context.getProperty(SEPARATOR).evaluateAttributeExpressions(flowFile).getValue();
-
+        final Character separator = 
context.getProperty(SEPARATOR).evaluateAttributeExpressions(flowFile).getValue().charAt(0;

Review comment:
       Oh, Somehow missed it while copying after test. Thanks again for 
commenting.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to