Improved: Fixing defects reported by FindBugs, package

org.apache.ofbiz.entity.connection.
(OFBIZ-9718)

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817552 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Brohl
2017-12-08 19:44:27 +00:00
parent 29d09d0cd5
commit c02d9de3ab
@@ -166,7 +166,7 @@ public class DBCPConnectionFactory implements ConnectionFactory {
public static Map<String, Object> getDataSourceInfo(String helperName) {
Map<String, Object> dataSourceInfo = new HashMap<String, Object>();
DebugManagedDataSource mds = dsCache.get(helperName);
if (mds instanceof DebugManagedDataSource) {
if (mds != null) {
dataSourceInfo = mds.getInfo();
}
return dataSourceInfo;