Fix for Internal UTC : Add check precondition code 50/88950/1 accepted/tizen/common/20160921.162647 accepted/tizen/ivi/20160921.233030 accepted/tizen/mobile/20160921.233059 accepted/tizen/tv/20160921.233027 accepted/tizen/wearable/20160921.233033 submit/tizen/20160921.073503
authorJihoon Jung <jh8801.jung@samsung.com>
Wed, 21 Sep 2016 07:27:57 +0000 (16:27 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Wed, 21 Sep 2016 07:28:43 +0000 (16:28 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: Ib9da126b162e8d4f66c18f1f18d21d7ddae78c68

packaging/capi-network-nfc.spec
src/nfc_card_emulation.c

index 5781242..95a782b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-nfc
 Summary:    A NFC library in Native API
-Version:    0.3.4
+Version:    0.3.5
 Release:    0
 Group:      Network & Connectivity/NFC
 License:    Apache-2.0
index a332f65..3b8153d 100755 (executable)
@@ -183,6 +183,7 @@ int nfc_se_close_secure_element_internal(nfc_se_h handle)
 
        /* LCOV_EXCL_START */
        CHECK_INIT();
+       CHECK_INVALID(handle == NULL);
 
        result = net_nfc_client_se_close_internal_secure_element_sync(
                (net_nfc_target_handle_h)handle);
@@ -443,6 +444,8 @@ int nfc_se_add_route_for_aid_internal(const char *aid, nfc_se_type_e se_type, co
 
        /* LCOV_EXCL_START */
        CHECK_INIT();
+       CHECK_INVALID(aid == NULL);
+       CHECK_INVALID(pkg_name == NULL);
 
        result = net_nfc_client_se_add_route_aid_sync(pkg_name, se_type, category, aid, unlock_required, power);
 
@@ -460,6 +463,8 @@ int nfc_se_remove_route_for_aid_internal(const char* pkg_name, const char *aid)
 
        /* LCOV_EXCL_START */
        CHECK_INIT();
+       CHECK_INVALID(pkg_name == NULL);
+       CHECK_INVALID(aid == NULL);
 
        if (aid == NULL)
                result = net_nfc_client_se_remove_package_aids_sync(pkg_name);