summaryrefslogtreecommitdiff
path: root/tools/aidl/generate_java.cpp
diff options
context:
space:
mode:
authorLes Lee <lesl@google.com>2021-06-28 18:03:18 +0800
committerLes Lee <lesl@google.com>2021-07-02 09:17:49 +0000
commit738f4416cfba96b9c80555ae55c39ac79c856a59 (patch)
treeeb1108e7208fe08a5018e038807f4c09e224cf1d /tools/aidl/generate_java.cpp
parent5ded797ef4b81a39e0ed2b66a4974c066a402390 (diff)
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 Merged-In: I835a7b8890035975e187ca0a70ec2f30ca56455a
Diffstat (limited to 'tools/aidl/generate_java.cpp')
0 files changed, 0 insertions, 0 deletions