Github user JPercivall commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/694#discussion_r72728226
  
    --- Diff: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/EntityFactory.java
 ---
    @@ -77,6 +77,8 @@ public ProcessorEntity createProcessorEntity(final 
ProcessorDTO dto, final Revis
             if (dto != null) {
                 entity.setPermissions(permissions);
                 entity.setStatus(status);
    +            status.setCanRead(permissions.getCanRead());
    --- End diff --
    
    I believe the potential for a NPE was introduce here. Permissions doesn't 
get checked for null until line 85.
    
    This also applies to the other changes in this file.


---
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.
---

Reply via email to