[ https://issues.apache.org/jira/browse/NIFI-5609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16621199#comment-16621199 ]
ASF GitHub Bot commented on NIFI-5609: -------------------------------------- Github user mattyb149 commented on the issue: https://github.com/apache/nifi/pull/3012 +1 LGTM, ran build with unit tests and contrib-check, tried on a live NiFi instance, verified no NPE is thrown when PG status history is requested too soon. Thanks for the fix! Merging to master > NPE thrown if user attempts to view Status History too early > ------------------------------------------------------------ > > Key: NIFI-5609 > URL: https://issues.apache.org/jira/browse/NIFI-5609 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Reporter: Mark Payne > Assignee: Mark Payne > Priority: Major > Fix For: 1.8.0 > > > I started NiFi and then quickly went to the UI and right-clicked on a > processor and tried to view Status History. I got back an error. The > user-logs show the following (partial) stack trace: > {code:java} > 2018-09-19 13:20:19,928 ERROR [NiFi Web Server-24] > 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.controller.status.history.StatusHistoryUtil.createStatusHistoryDTO(StatusHistoryUtil.java:39) > at > org.apache.nifi.controller.FlowController.getProcessorStatusHistory(FlowController.java:5066) > at > org.apache.nifi.controller.FlowController.getProcessorStatusHistory(FlowController.java:5062) > at > org.apache.nifi.web.controller.ControllerFacade.getProcessorStatusHistory(ControllerFacade.java:299) > at > org.apache.nifi.web.controller.ControllerFacade$$FastClassBySpringCGLIB$$5a42ba54.invoke(<generated>) > at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > at > org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) > at > org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673) > at > org.apache.nifi.web.controller.ControllerFacade$$EnhancerBySpringCGLIB$$8aeed060.getProcessorStatusHistory(<generated>) > at > org.apache.nifi.web.StandardNiFiServiceFacade.getProcessorStatusHistory(StandardNiFiServiceFacade.java:2950) > at > org.apache.nifi.web.StandardNiFiServiceFacade$$FastClassBySpringCGLIB$$358780e0.invoke(<generated>) > at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > at > org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738){code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)