You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2020/08/27 19:55:27 UTC

[GitHub] [nifi-minifi] kevdoran commented on a change in pull request #194: MINIFI-537 Fix NPE in BootstrapTransformer

kevdoran commented on a change in pull request #194:
URL: https://github.com/apache/nifi-minifi/pull/194#discussion_r478660121



##########
File path: minifi-bootstrap/src/main/java/org/apache/nifi/minifi/bootstrap/util/ConfigTransformer.java
##########
@@ -257,7 +257,9 @@ protected static void writeNiFiProperties(ConfigSchema configSchema, OutputStrea
             orderedProperties.setProperty("nifi.web.jetty.working.directory", "./work/jetty");
             orderedProperties.setProperty("nifi.web.jetty.threads", "200");
 
-            orderedProperties.setProperty("nifi.sensitive.props.key", sensitiveProperties.getKey(), System.lineSeparator() + "# security properties #");
+            final String sensitivePropertiesKey = sensitiveProperties.getKey();
+            final String notnullSensitivePropertiesKey = sensitivePropertiesKey != null ? sensitivePropertiesKey : "";

Review comment:
       yep, will do!




----------------------------------------------------------------
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:
users@infra.apache.org