Denes Arvay created NIFI-8994:
---------------------------------
Summary: Potential NPEx in DBCPConnectionPool and
Hive3ConnectionPool
Key: NIFI-8994
URL: https://issues.apache.org/jira/browse/NIFI-8994
Project: Apache NiFi
Issue Type: Bug
Reporter: Denes Arvay
Both classes have a {{Long extractMillisWithInfinite(PropertyValue prop)}}
method but its return value isn't checked for {{null}} at the places where it's
used.
[1]
[https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/main/java/org/apache/nifi/dbcp/DBCPConnectionPool.java#L396-L430]
[2]
[https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-hive-bundle/nifi-hive3-processors/src/main/java/org/apache/nifi/dbcp/hive/Hive3ConnectionPool.java#L445-L470]
Currently these values can't be null due to the configuration of the respective
properties but regardless this is still a NPEx risk.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)