Merge "Add null check for osAppId" into stage-aosp-udc-ts-dev am: 848650fd00
am: b668cff7ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24698008 Change-Id: Ibc1523b98ec6e9c99ca5b30cf09218356b97b633 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
9013cccc6a
1 changed files with 2 additions and 1 deletions
|
@ -214,7 +214,8 @@ TEST_P(RadioDataTest, setupDataCall_osAppId) {
|
|||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_data->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
|
||||
RadioError::OP_NOT_ALLOWED_BEFORE_REG_TO_NW}));
|
||||
if (radioRsp_data->setupDataCallResult.trafficDescriptors.size() <= 0) {
|
||||
if (radioRsp_data->setupDataCallResult.trafficDescriptors.size() <= 0 ||
|
||||
!radioRsp_data->setupDataCallResult.trafficDescriptors[0].osAppId.has_value()) {
|
||||
return;
|
||||
}
|
||||
EXPECT_EQ(trafficDescriptor.osAppId.value().osAppId,
|
||||
|
|
Loading…
Reference in a new issue