[ https://issues.apache.org/jira/browse/NIFI-5609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16621153#comment-16621153 ]
ASF GitHub Bot commented on NIFI-5609: -------------------------------------- GitHub user markap14 opened a pull request: https://github.com/apache/nifi/pull/3012 NIFI-5609: Fixed NullPointer when attempting to view status history f… …or a component that has not yet run Thank you for submitting a contribution to Apache NiFi. In order to streamline the review of the contribution we ask you to ensure the following steps have been taken: ### For all changes: - [ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message? - [ ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character. - [ ] Has your PR been rebased against the latest commit within the target branch (typically master)? - [ ] Is your initial contribution a single, squashed commit? ### For code changes: - [ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder? - [ ] Have you written or updated unit tests to verify your changes? - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? - [ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly? - [ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly? - [ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties? ### For documentation related changes: - [ ] Have you ensured that format looks appropriate for the output in which it is rendered? ### Note: Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible. You can merge this pull request into a Git repository by running: $ git pull https://github.com/markap14/nifi NIFI-5609 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/nifi/pull/3012.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3012 ---- commit dc0cacf8c5476d53b531eb5323ff645fcd20d7c8 Author: Mark Payne <markap14@...> Date: 2018-09-19T20:17:29Z NIFI-5609: Fixed NullPointer when attempting to view status history for a component that has not yet run ---- > 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 > Priority: Major > > 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)