ret = account_get_access_token(ret_account, &ret_access_token);
assert_eq(ret, ACCOUNT_ERROR_NONE);
- assert_eq(strcmp(ret_access_token, access_token), 0);
+ if (ret_access_token != NULL && access_token != NULL)
+ assert_eq(strcmp(ret_access_token, access_token), 0);
_account_free_text(ret_access_token);
for (i = 0; i < 5; i++){
check_fail(ret == ACCOUNT_ERROR_NONE);
ret = account_get_access_token(account, &comparison_str);
check_fail(ret == ACCOUNT_ERROR_NONE);
- check_fail(strcmp(str, comparison_str)==0);
+ if (str != NULL && comparison_str != NULL)
+ check_fail(strcmp(str, comparison_str)==0);
_account_free_text(str);
_account_free_text(comparison_str);