Fix NPE in AbstractFeatureWrapper 34/27934/1
authorTom Pantelis <tpanteli@brocade.com>
Mon, 5 Oct 2015 16:10:23 +0000 (12:10 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Mon, 5 Oct 2015 16:10:23 +0000 (12:10 -0400)
commite6076f69f57fe5918c66637414175c6229635841
treebd729370e38f57a0c185f40713b11422716ff9b0
parentdd6976c24f12c7cef7bed8fa6bc645dc699dda4f
Fix NPE in AbstractFeatureWrapper

Added check in ChildAwareFeatureWrapper#getChildFeatures to verify the
feature exists in the FeaturesService to avoid NPE. This is a similar
workaround as was done in FeatureConfigPusher for a bug in karaf where
the FeaturesService may mysteriously return null for an existing feature.

Change-Id: I006cd012e919ac206d70bb4ee5754c72f0f01b32
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/internal/ChildAwareFeatureWrapper.java