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

David Handermann updated NIFI-15584:
------------------------------------
    Affects Version/s: 2.0.0
                       2.8.0

> 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
>    Affects Versions: 2.0.0, 2.8.0
>            Reporter: Arkadiusz Panczyk
>            Priority: Major
>              Labels: DBCP, extensions
>         Attachments: image (5).png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to