From 2a14f26fb23766071ef995149c7ac7058d73c42f Mon Sep 17 00:00:00 2001 From: "moon87.park" Date: Fri, 14 Jul 2017 14:12:57 +0900 Subject: [PATCH] [Attach-panel] Fixed to set the attachPanel after error check Change-Id: If098539a075ebfbc8668edff4c35ba6091027e3e --- .../Tizen.Applications.AttachPanel/AttachPanel.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs index b74140e..df0415d 100755 --- a/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs +++ b/src/Tizen.Applications.AttachPanel/Tizen.Applications.AttachPanel/AttachPanel.cs @@ -20,10 +20,12 @@ namespace Tizen.Applications.AttachPanel { throw new ArgumentNullException("Use the value property, not null value"); } - _attachPanel = new IntPtr(); - Interop.AttachPanel.ErrorCode err = Interop.AttachPanel.CreateAttachPanel(conformant, ref _attachPanel); + IntPtr candidateAttachPanel = new IntPtr(); + Interop.AttachPanel.ErrorCode err = Interop.AttachPanel.CreateAttachPanel(conformant, ref candidateAttachPanel); checkException(err); + _attachPanel = candidateAttachPanel; + if (_eventEventHandler == null) { StateEventListenStart(); -- 2.7.4