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

    https://github.com/apache/nifi/pull/694#discussion_r72731831
  
    --- 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 --
    
    Yup, hit it when I was trying to delete a connection:
    
    2016-07-28 21:41:44,415 INFO [NiFi Web Server-231] 
org.apache.nifi.web.filter.RequestLogger Attempting request for (anonymous) 
DELETE 
http://localhost:8080/nifi-api/connections/344c598c-0156-1000-0000-000053115355 
(source ip: 127.0.0.1)
    2016-07-28 21:41:44,429 ERROR [NiFi Web Server-231] 
o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: 
java.lang.NullPointerException. Returning Internal Server Error response.
    java.lang.NullPointerException: null
            at 
org.apache.nifi.web.api.dto.EntityFactory.createConnectionEntity(EntityFactory.java:251)
 ~[classes/:na]
            at 
org.apache.nifi.web.StandardNiFiServiceFacade.deleteConnection(StandardNiFiServiceFacade.java:858)
 ~[classes/:1.0.0-SNAPSHOT]
            at 
org.apache.nifi.web.StandardNiFiServiceFacade$$FastClassBySpringCGLIB$$358780e0.invoke(<generated>)
 ~[classes/:1.0.0-SNAPSHOT]



---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to