From: moon87.park Date: Fri, 14 Jul 2017 05:12:57 +0000 (+0900) Subject: [Attach-panel] Fixed to set the attachPanel after error check X-Git-Tag: submit/trunk/20170823.075128~120^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a14f26fb23766071ef995149c7ac7058d73c42f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Attach-panel] Fixed to set the attachPanel after error check Change-Id: If098539a075ebfbc8668edff4c35ba6091027e3e --- 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();