string styleName = "Tizen.NUI.Compoenents." + (itemsLayouter is LinearLayouter? "LinearLayouter" : (itemsLayouter is GridLayouter ? "GridLayouter" : "ItemsLayouter"));
using (ViewStyle layouterStyle = ThemeManager.GetStyle(styleName))
{
- itemsLayouter.Padding = new Extents(layouterStyle.Padding);
+ if (layouterStyle != null)
+ itemsLayouter.Padding = new Extents(layouterStyle.Padding);
}
}
}
else if (isGrouped)
{
GroupInfo gInfo = GetGroupInfo(index);
+ if (gInfo == null)
+ {
+ Tizen.Log.Error("NUI", "GroupInfo failed to get in GetItemPosition()!");
+ return (0, 0);
+ }
float current = GetGroupPosition(gInfo, index);
Extents itemMargin = CandidateMargin;