add a nothrow

Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
zhaolinglan
2022-07-21 08:37:54 +08:00
parent 80d44175d8
commit b76fbc8f89
@@ -315,7 +315,7 @@ namespace MiscServices {
int32_t uid = IPCSkeleton::GetCallingUid();
int32_t userId = getUserId(uid);
auto *parcel = new MessageParcel();
auto *parcel = new (std::nothrow) MessageParcel();
InputMethodProperty *target = InputMethodProperty::Unmarshalling(data);
parcel->WriteInt32(userId);
if (!target->Marshalling(*parcel)) {