[ 
https://issues.apache.org/jira/browse/NIFI-633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14560914#comment-14560914
 ] 

Matt Gilman commented on NIFI-633:
----------------------------------

I am not currently working on it. This is one is pretty straight forward. The 
init method is given a ProcessorInitializationContext. The mocked version given 
during documentation generation returns null when calling getLogger().

{code}
context.getLogger().info("This will cause an NPE.");
{code}

> Documentation Generation: Logger
> --------------------------------
>
>                 Key: NIFI-633
>                 URL: https://issues.apache.org/jira/browse/NIFI-633
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Matt Gilman
>            Priority: Minor
>
> During the documentation generation, the processor is created and 
> initialized. During initialization the processor is given a mock 
> ProcessorInitializationContext which returns null when calling getLogger(). 
> If a processor attempts to log anything without verifying the logger is not 
> null, a NPE is thrown and documentation generation fails.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to