ottobackwards commented on issue #3772: NIFI-6682 SplitJson does not work if 
the input is null
URL: https://github.com/apache/nifi/pull/3772#issuecomment-536044147
 
 
   No, you read it correctly, but that operation is _inside jsonpath_, not nifi.
   in ParseContextImpl.java
   ```java
    @Override
       public DocumentContext parse(InputStream json, String charset) {
           notNull(json, "json input stream can not be null");
           notNull(json, "charset can not be null");
           try {
               Object obj = configuration.jsonProvider().parse(json, charset);
               return new JsonContext(obj, configuration);
           } finally {
               Utils.closeQuietly(json);
           }
       }
   ```
   the Object obj for "null" is a null, and boom.  I think I'm going to do a PR 
to that project on this as well.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to