mirror of
https://github.com/openharmony/telephony_data_storage.git
synced 2026-07-01 08:11:48 -04:00
@@ -75,6 +75,10 @@ int ParserUtil::ParserPdpProfileJson(std::vector<PdpProfile> &vec)
|
||||
DATA_STORAGE_LOGE("ParserUtil::ParserPdpProfileJson LoaderJsonFile is fail!\n");
|
||||
return ret;
|
||||
}
|
||||
if (content == nullptr) {
|
||||
DATA_STORAGE_LOGE("ParserUtil::content is nullptr!");
|
||||
return static_cast<int>(LoadProFileErrorType::FILE_PARSER_ERROR);
|
||||
}
|
||||
const int contentLength = strlen(content);
|
||||
const std::string rawJson(content);
|
||||
free(content);
|
||||
|
||||
Reference in New Issue
Block a user