From 526a36255e2fa864a27273c38fe0d5cf41398415 Mon Sep 17 00:00:00 2001 From: "huiyu,eun" Date: Fri, 24 Nov 2017 16:29:59 +0900 Subject: [PATCH] [NUI] Fix NullReferenceException Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. Change-Id: I625aed96587f6d2f1ecc0ea114ebc80af2dc9365 Signed-off-by: huiyu,eun --- src/Tizen.NUI/src/internal/Registry.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/internal/Registry.cs b/src/Tizen.NUI/src/internal/Registry.cs index cc03ca5..01a9168 100755 --- a/src/Tizen.NUI/src/internal/Registry.cs +++ b/src/Tizen.NUI/src/internal/Registry.cs @@ -103,7 +103,7 @@ namespace Tizen.NUI if (Instance._controlMap.TryGetValue(refObjectPtr, out weakReference)) { - BaseHandle ret = weakReference.Target as BaseHandle; + BaseHandle ret = weakReference?.Target as BaseHandle; return ret; } else -- 2.7.4