fix: Invalid subscription plan cause NPE
If someone setup a invalid subscription plan with subId:INVALID_SUBSCRIPTION_ID. (For instance, test code). It will cause NPE when WiFi connected because WiFi network doesn't own subscriberId. (Happened on API call: buildTemplateCarrierMetered with null subscriberId.) Fix: 1. Add null check before calling buildTemplateCarrierMetered 2. Add invalid subId check before saving subscription plan. Bug: 191938713 Test: atest -c NetworkPolicyManagerServiceTest Change-Id: I835a7b8890035975e187ca0a70ec2f30ca56455a
Loading
Please register or sign in to comment