Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
blueprint-core-1.7.0
-
None
Description
I found that the CmUtils.getProperties method has a buggy code as follow:
try {
ConfigurationAdmin ca = bc.getService(caRef);
Configuration config = getConfiguration(ca, persistentId);
if (config != null)
else
{ return null; }} finally
{ bc.ungetService(caRef); }Here, before calling ungetService, the call chain BundleContext caBc = caRef.getBundle().getBundleContext() can throw NPE.
Indeed, a similar bug is fixed in ARIES-788. Please check this bug at https://issues.apache.org/jira/browse/ARIES-788?jql=project%20%3D%20ARIES