[Issue#] N/A
[Problem] A crash occurs when try to get plugin handle about W3C extension feature.
[Cause] W3C extension feature exception handling fault.
[Solution] Exception handling routine was added.
Change-Id: Iabc8a7e7e01fd6b50413a584d5d857b4eb08e2cf
{
LogDebug("Processing feature: " << *feature);
- auto plugin = m_pluginsSupport->getPluginForFeature(*feature);
+ PluginModelPtr plugin = m_pluginsSupport->getPluginForFeature(*feature);
+
+ if (!plugin)
+ {
+ LogDebug("It didn't have plugins! : " << *feature);
+ continue;
+ }
+
ImplementedObjectsList implObjs =
PluginDAOReadOnly::
getImplementedObjectsForPluginHandle(plugin->Handle.Get());
PluginModelPtr
PluginContainerSupport::getPluginModel(const FeatureModelPtr &feature) const
{
- LogDebug("");
- Assert(feature && "Null Ptr for feature model");
- LogDebug("Feature located in plugin: " << feature->PHandle.Get());
-
- return getPluginModelById(feature->PHandle.Get());
+ if (!feature)
+ {
+ LogDebug("Null Ptr for feature model");
+ return PluginModelPtr();
+ }
+ else
+ {
+ LogDebug("Feature located in plugin: " << feature->PHandle.Get());
+ return getPluginModelById(feature->PHandle.Get());
+ }
}
PluginContainerSupport::PluginsList