[Location][Non-ACR][Fixed Nullpointer issue] 11/185011/2
authorSanghoon Lee <shooney.lee@samsung.com>
Wed, 25 Jul 2018 07:47:42 +0000 (16:47 +0900)
committerSanghoon Lee <shooney.lee@samsung.com>
Wed, 25 Jul 2018 07:51:08 +0000 (16:51 +0900)
Change-Id: Ia6d62d457996f1adc44b5b867d25a38799969009

tct-suite-vs/Tizen.Location.Manual.Tests/testcase/TSLocator.cs

index c19674c..4b7d11c 100755 (executable)
@@ -1,6 +1,6 @@
 using System;
 using System.Threading.Tasks;
-using NUnit.Framework;\r
+using NUnit.Framework;
 using NUnit.Framework.TUnit;
 using Tizen.System;
 
@@ -33,6 +33,7 @@ namespace Tizen.Location.Tests
         public static void Destroy()
         {
             Tizen.Log.Info(Globals.LogTag, "Deinit() PostCondition");
+            locator?.Dispose();
         }
 
         private static bool CheckCapability(string feature)
@@ -112,6 +113,7 @@ namespace Tizen.Location.Tests
 
             if (location_supported)
             {
+                locator = new Locator(activationType);
                 locator.SettingChanged += SettingChangedHandlerForset;
                 await ManualTest.WaitForConfirm();
             }