mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2024-11-27 02:00:45 +00:00
回退 'Pull Request !1570 : 修复XTS测试getNetworkState模块测试fail问题'
This commit is contained in:
parent
718e61c069
commit
d87dbd2802
@ -242,8 +242,8 @@ int32_t CoreServiceStub::OnGetNetworkState(MessageParcel &data, MessageParcel &r
|
||||
auto slotId = data.ReadInt32();
|
||||
sptr<NetworkState> networkState = nullptr;
|
||||
int32_t result = GetNetworkState(slotId, networkState);
|
||||
if ((networkState == nullptr) && (result != TELEPHONY_ERR_PERMISSION_ERR)) {
|
||||
TELEPHONY_LOGE("networkState is nullptr and permission is not denied.");
|
||||
if (networkState == nullptr) {
|
||||
TELEPHONY_LOGE("networkState is nullptr.");
|
||||
result = TELEPHONY_ERR_LOCAL_PTR_NULL;
|
||||
}
|
||||
reply.WriteInt32(result);
|
||||
|
Loading…
Reference in New Issue
Block a user