You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/11/08 17:15:00 UTC

[jira] [Commented] (NIFI-10317) NullPointerException if AMQP header value is null

    [ https://issues.apache.org/jira/browse/NIFI-10317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17630532#comment-17630532 ] 

ASF subversion and git services commented on NIFI-10317:
--------------------------------------------------------

Commit 747b5d4d9e933f6ced31c8735f7e8eb791449a71 in nifi's branch refs/heads/main from SaumyaGurtu
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=747b5d4d9e ]

NIFI-10317 Taking care of NullPointerException if AMQP header value is null
NIFI-10317 refactoring to remove repeated conversions to string from char
NIFI-10317 correctly handle null values: null vs "null"
NIFI-10317 adding test
NIFI-10317 - Updated ConsumeAMQPTest to test for null and empty header values.
NIFI-10317 - Updated ConsumeAMQPTest to use hard coded string values when testing. Made convertMapToString() private.

Signed-off-by: Nathan Gough <th...@gmail.com>

This closes #6382.


> NullPointerException if AMQP header value is null
> -------------------------------------------------
>
>                 Key: NIFI-10317
>                 URL: https://issues.apache.org/jira/browse/NIFI-10317
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.16.0
>            Reporter: Yury Kosharovskiy
>            Assignee: Saumya Gurtu
>            Priority: Critical
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> Unhandled NullPointerException is thrown if AMQP header value is null:
> https://github.com/apache/nifi/blob/rel/nifi-1.16.0/nifi-nar-bundles/nifi-amqp-bundle/nifi-amqp-processors/src/main/java/org/apache/nifi/amqp/processors/ConsumeAMQP.java#L237



--
This message was sent by Atlassian Jira
(v8.20.10#820010)