Arkadiusz Panczyk created NIFI-15584:
----------------------------------------
Summary: 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
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)