* [NUI] Fix svace issue
Value widget, which was created by as-operator, so can be null,
is dereferenced in method call widget.GetIntPtr()
Value value, which is result of method invocation with possible null return value,
is dereferenced in method call value.Get()
Signed-off-by: huiyu,eun <huiyu.eun@samsung.com>
* [NUI] Modify unassigned local variable 'str'
Signed-off-by: huiyu,eun <huiyu.eun@samsung.com>
if (widgetInfo[widgetType] == widgetName)
{
Widget widget = Activator.CreateInstance(widgetType) as Widget;
- return widget.GetIntPtr();
+ if (widget)
+ {
+ return widget.GetIntPtr();
+ }
}
}
Tizen.NUI.PropertyMap map = new Tizen.NUI.PropertyMap();
GetProperty( Button.Property.LABEL).Get(map);
Tizen.NUI.PropertyValue value = map.Find( TextVisualProperty.Text, "Text");
- string str;
- value.Get(out str);
+ string str = "";
+ value?.Get(out str);
return str;
}
set
}
-}
\ No newline at end of file
+}