diff options
| author | Muhammad Hasan Khan <mhasank@google.com> | 2022-01-07 18:13:11 +0000 |
|---|---|---|
| committer | Muhammad Hasan Khan <mhasank@google.com> | 2022-01-07 18:13:17 +0000 |
| commit | 3520557a7c6836c98cd3c943028ab7db6b265b78 (patch) | |
| tree | cf57d24fde0156fd71525e12f8d70a4cf4d9a270 /core/java/android/util/SparseArrayMap.java | |
| parent | f7a327e8d5849f732739b7a59de18f678c76efbb (diff) | |
arc: Do not construct RestrictionSet with empty restrictions bundle
The legacy device_policy_restrictions tag can be empty and the code
tries to construct a restriction set with the empty bundle which causes
a crash. The newer device_policy_local_restrictions parses correctly
with empty body because the parsing code avoids passing empty bundle to
the set. In this fix we're adding a check on the bundle emptiness before
constructing the restriction set with it.
Bug: 213364202
Test: replace the new tag with the legacy tag and verify that app
launches successfully
Change-Id: Ib8dbbb4a550c4309e2243bf0611bb6c8565c0e96
Diffstat (limited to 'core/java/android/util/SparseArrayMap.java')
0 files changed, 0 insertions, 0 deletions
