From issues-return-97283-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Fri May 15 20:17:02 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id ED599180663 for ; Fri, 15 May 2020 22:17:01 +0200 (CEST) Received: (qmail 6423 invoked by uid 500); 15 May 2020 20:17:01 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 6401 invoked by uid 99); 15 May 2020 20:17:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2020 20:17:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AE069E30C3 for ; Fri, 15 May 2020 20:17:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 2E722780271 for ; Fri, 15 May 2020 20:17:00 +0000 (UTC) Date: Fri, 15 May 2020 20:17:00 +0000 (UTC) From: "ASF subversion and git services (Jira)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-7460) Nifi throws NullPointerException if some fields in Versioned Flow are null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NIFI-7460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17108625#comment-17108625 ] ASF subversion and git services commented on NIFI-7460: ------------------------------------------------------- Commit c51b9051a8f503af1e1793c952b150895a0399ce in nifi's branch refs/heads/master from Mark Payne [ https://gitbox.apache.org/repos/asf?p=nifi.git;h=c51b905 ] NIFI-7460: Avoid NPE when a VersionedProcessor has a null value for autoTerminatedRelationships. Added additional logging and improved error handling around syncing with invalid flows > Nifi throws NullPointerException if some fields in Versioned Flow are null > -------------------------------------------------------------------------- > > Key: NIFI-7460 > URL: https://issues.apache.org/jira/browse/NIFI-7460 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Reporter: Mark Payne > Assignee: Mark Payne > Priority: Major > Time Spent: 0.5h > Remaining Estimate: 0h > > I have a flow in the registry where the 'autoTerminatedRelationships' for a processor are null. This causes NiFi to throw a NPE, which prevents me from getting to the UI. NiFi should avoid throwing the NPE, should provide better logging to indicate where the problem is (which Process Group), and should in most cases just log errors and transition a PG's Versioned Flow State to a state of SYNC_FAILURE with an appropriate error instead of throwing Exceptions that could prevent the UI from responding -- This message was sent by Atlassian Jira (v8.3.4#803005)