-#git:framework/web/wrt-plugins-common wrt-plugins-common_0.3.79
+#git:framework/web/wrt-plugins-common wrt-plugins-common_0.3.80
Name: wrt-plugins-common
Summary: wrt-plugins common library
-Version: 0.3.79
+Version: 0.3.80
Release: 1
Group: Development/Libraries
License: Apache License, Version 2.0
{
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