The BACKGROUND property returns a PropertyMap and we are trying to find Visual.Property.Type inside that PropertyMap
which is not available as it has not been set in the application side, and hence causing a crash.
Anyway, this has now been fixed by adding null checks.
Conflicts:
Tizen.NUI/src/public/BaseComponents/View.cs
Change-Id: I2e2fe44a94e4fde15c259a9e67655dfabf165e95
- GetProperty(TextEditor.Property.LINE_COUNT).Get(out temp);
+ GetProperty(TextEditor.Property.LINE_COUNT).Get(ref temp);
Tizen.NUI.PropertyMap background = Background;
int visualType = 0;
Tizen.NUI.PropertyMap background = Background;
int visualType = 0;
- background.Find(Visual.Property.Type).Get(ref visualType);
+ background.Find(Visual.Property.Type)?.Get(ref visualType);
if (visualType == (int)Visual.Type.Color)
{
if (visualType == (int)Visual.Type.Color)
{
- background.Find(ColorVisualProperty.MixColor).Get(backgroundColor);
+ background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
}
return backgroundColor;
}
return backgroundColor;
Tizen.NUI.PropertyMap background = Background;
int visualType = 0;
Tizen.NUI.PropertyMap background = Background;
int visualType = 0;
- background.Find(Visual.Property.Type).Get(ref visualType);
+ background.Find(Visual.Property.Type)?.Get(ref visualType);
if (visualType == (int)Visual.Type.Image)
{
if (visualType == (int)Visual.Type.Image)
{
- background.Find(ImageVisualProperty.URL).Get(out backgroundImage);
+ background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
}
return backgroundImage;
}
return backgroundImage;