[
https://issues.apache.org/jira/browse/NIFI-15584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Handermann reassigned NIFI-15584:
---------------------------------------
Assignee: Arkadiusz Panczyk
> 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
> Assignee: Arkadiusz Panczyk
> Priority: Major
> Labels: DBCP, extensions
> Fix For: 2.9.0
>
> 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)