=>If app set the Left/Right/Up/DownFocusableView to null, then it will be crash.
Change-Id: I3a9c68e98a9ef010a67d31221da239dcf37ece6e
Signed-off-by: Feng Jin <feng16.jin@samsung.com>
}
set
{
- LeftFocusableViewId = (int)value.GetId();
+ if(value)
+ {
+ LeftFocusableViewId = (int)value.GetId();
+ }
+ else
+ {
+ LeftFocusableViewId = -1;
+ }
}
}
}
set
{
- RightFocusableViewId = (int)value.GetId();
+ if(value)
+ {
+ RightFocusableViewId = (int)value.GetId();
+ }
+ else
+ {
+ RightFocusableViewId = -1;
+ }
}
}
}
set
{
- UpFocusableViewId = (int)value.GetId();
+ if(value)
+ {
+ UpFocusableViewId = (int)value.GetId();
+ }
+ else
+ {
+ UpFocusableViewId = -1;
+ }
}
}
}
set
{
- DownFocusableViewId = (int)value.GetId();
+ if(value)
+ {
+ DownFocusableViewId = (int)value.GetId();
+ }
+ else
+ {
+ DownFocusableViewId = -1;
+ }
}
}