[ElmSharp] Fix SetNextFocusObject issue (#401)
authorSeungkeun Lee <sngn.lee@samsung.com>
Mon, 20 Aug 2018 09:07:28 +0000 (18:07 +0900)
committerKangho Hur <rookiejava+github@gmail.com>
Mon, 20 Aug 2018 09:07:28 +0000 (18:07 +0900)
To allow null on next parameter

src/ElmSharp/ElmSharp/Widget.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 397e349..4a6fcbb
@@ -324,7 +324,7 @@ namespace ElmSharp
         /// <since_tizen> preview </since_tizen>
         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);
         }
 
         /// <summary>