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

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

Commit 4d32a455e694fbca8fc2a3373e144c9d21f4ec7b in nifi's branch 
refs/heads/main from Rakesh Kumar Singh
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4d32a455e69 ]

NIFI-14472 Fixed potential NullPointerException in PutKinesisFirehose (#11211)

- Collapsed two-step computeIfAbsent/get into a single chained call in 
PutKinesisFirehose to eliminate the redundant map lookup.

Signed-off-by: David Handermann <[email protected]>

> exception java.lang.NullPointerException: Cannot invoke 
> "java.util.List.add(Object)" because the return value of 
> "java.util.Map.get(Object)" is null: {}
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-14472
>                 URL: https://issues.apache.org/jira/browse/NIFI-14472
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 2.0.0
>            Reporter: Navneet Kaur
>            Priority: Blocker
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Hello,
> I have been seeing this issue while using PutKinesisFirehose in version 
> 2.0.0-M2 & 2.0.0-M3 with the error: 
> {{PutKinesisFirehose[id=1cbd9a91-0196-1000-ffff-ffff9509da12] Failed to 
> publish to kinesis firehose 
> [StandardFlowFileRecord[uuid=df818cf9-4115-4348-b359-9364827a85e8,claim=StandardContentClaim
>  [resourceClaim=StandardResourceClaim[id=1744182523933-1, container=default, 
> section=1], offset=1757, 
> length=36],offset=0,name=df818cf9-4115-4348-b359-9364827a85e8,size=36]] with 
> exception java.lang.NullPointerException: Cannot invoke 
> "java.util.List.add(Object)" because the return value of 
> "java.util.Map.get(Object)" is null: {}
> }}
> Details: https://apachenifi.slack.com/archives/C0L9VCD47/p1744246111170009



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

Reply via email to