Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
/// <since_tizen> 3 </since_tizen>
public bool HasFocus()
{
- bool ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ bool ret = false;
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ else
+ {
+ Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
+ }
return ret;
}