From a588a667b7f319437760d237070ae75028fb6318 Mon Sep 17 00:00:00 2001 From: Seungkeun Lee Date: Mon, 20 Aug 2018 18:07:28 +0900 Subject: [PATCH] [ElmSharp] Fix SetNextFocusObject issue (#401) To allow null on next parameter --- src/ElmSharp/ElmSharp/Widget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 src/ElmSharp/ElmSharp/Widget.cs diff --git a/src/ElmSharp/ElmSharp/Widget.cs b/src/ElmSharp/ElmSharp/Widget.cs old mode 100755 new mode 100644 index 397e349..4a6fcbb --- a/src/ElmSharp/ElmSharp/Widget.cs +++ b/src/ElmSharp/ElmSharp/Widget.cs @@ -324,7 +324,7 @@ namespace ElmSharp /// preview public void SetNextFocusObject(EvasObject next, FocusDirection direction) { - Interop.Elementary.elm_object_focus_next_object_set(RealHandle, next.RealHandle, (int)direction); + Interop.Elementary.elm_object_focus_next_object_set(RealHandle, next?.RealHandle ?? IntPtr.Zero, (int)direction); } /// -- 2.7.4