[NUI] Fix widget application crash issue (#175) 4.0.1.14119
authortscholb <tscholb@gmail.com>
Thu, 22 Mar 2018 06:36:28 +0000 (15:36 +0900)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Thu, 22 Mar 2018 06:36:28 +0000 (15:36 +0900)
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

index e36dcfc..d51aca4 100755 (executable)
@@ -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;