Add null check 92/296692/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.093226 accepted/tizen/unified/20230808.011402 tizen_8.0_m2_release
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 3 Aug 2023 06:40:33 +0000 (15:40 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 3 Aug 2023 06:40:33 +0000 (15:40 +0900)
Change-Id: Ic7165482cb8c07adddbaa6ae84f0d67f54343d0c

packaging/nan-manager.spec
src/NanDataPathInformation.cpp

index 3bb7ec322973f47d330c7775e8c9b8734ee1a00b..c8b0a9dc29e39bd634e290fbb7e167402f318feb 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:          nan-manager
 Summary:       NAN (Neighbor Awareness Networking) manager (Wi-Fi Aware)
-Version:       0.2.0
+Version:       0.2.1
 Release:       1
 Group:         Network & Connectivity
 License:       Apache-2.0
index ee5ed5419dc394f8a2df9f920193284b9ba5402a..caa17931ea321369b91acb2eb4c55ea5d7e23bbe 100644 (file)
@@ -73,8 +73,10 @@ uint32_t NanDataPathInformation::getDataPathId()
 
 void NanDataPathInformation::setDataPathId(uint32_t id)
 {
-       NAN_LOGI("setDataPathId. dataPathId %u", id);
+       if (mConfig == nullptr)
+               return;
        mDataPathId = mConfig->dataPathId = id;
+       NAN_LOGI("setDataPathId. dataPathId %u", id);
 }
 
 uint16_t NanDataPathInformation::getPubSubId()