From a6e81e4cc2fe44e76fc21b32aeb798d0072677f5 Mon Sep 17 00:00:00 2001 From: tscholb Date: Thu, 22 Mar 2018 15:36:28 +0900 Subject: [PATCH] [NUI] Fix widget application crash issue (#175) Widget Application can't get thread id because it works in different process So Registry need to avoid in this case --- src/Tizen.NUI/src/internal/Registry.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Tizen.NUI/src/internal/Registry.cs b/src/Tizen.NUI/src/internal/Registry.cs index e36dcfc..d51aca4 100755 --- a/src/Tizen.NUI/src/internal/Registry.cs +++ b/src/Tizen.NUI/src/internal/Registry.cs @@ -154,6 +154,11 @@ namespace Tizen.NUI private static void RegistryCurrentThreadCheck() { + if(savedApplicationThread == null) + { + Tizen.Log.Fatal("NUI", $"Error! maybe main thread is created by other process "); + return; + } int currentId = Thread.CurrentThread.ManagedThreadId; int mainThreadId = savedApplicationThread.ManagedThreadId; -- 2.7.4