You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Arkadiusz Panczyk (Jira)" <ji...@apache.org> on 2026/02/12 12:40:00 UTC

[jira] [Updated] (NIFI-15584) Fix NPE in DBCPConnectionPool for Dynamic Properties with Null Values

     [ https://issues.apache.org/jira/browse/NIFI-15584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arkadiusz Panczyk updated NIFI-15584:
-------------------------------------
    Attachment: image (5).png

> Fix NPE in DBCPConnectionPool for Dynamic Properties with Null Values 
> ----------------------------------------------------------------------
>
>                 Key: NIFI-15584
>                 URL: https://issues.apache.org/jira/browse/NIFI-15584
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Arkadiusz Panczyk
>            Priority: Major
>              Labels: DBCP, extensions
>         Attachments: image (5).png
>
>
> DBCPConnectionPool.getConnectionProperties() throws a NullPointerException when a dynamic property value resolves to null.
> The method uses Collectors.toMap to collect dynamic properties into a Map<String, String>. The underlying HashMap.merge() does not accept null values, so when either propertyValue.getValue() (sensitive properties) or propertyValue.evaluateAttributeExpressions().getValue() (non-sensitive properties) returns null, the collector throws an NPE.



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