[NUI] Do not register when BaseHandle doesn't have body
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 2 Nov 2023 07:44:01 +0000 (16:44 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 6 Nov 2023 12:12:22 +0000 (21:12 +0900)
commitc4bdb8637cae6723909c5d2563836e0169bf7a52
tree055a7688ade2b2a13e3c4a48162bab6f7c32ccb4
parent89ca8019c1bc741c1d728247c5b01c1d1946f06d
[NUI] Do not register when BaseHandle doesn't have body

If BaseHandle doesn't have body, the refCPtr value is IntPtr.Zero.

If than, the various cases have wrong registration in future.

To avoid this case, let we ignore to register to registry, and
make BaseHandle.registerMe value as false.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/internal/Common/Registry.cs
src/Tizen.NUI/src/public/Common/BaseHandle.cs