commit | 3fff5c48e259d8ee88a94d0a39d808cc67721da0 | [log] [tgz] |
---|---|---|
author | Jordan Jozwiak <jjoz@google.com> | Mon Nov 15 15:51:19 2021 -0800 |
committer | Jordan Jozwiak <jjoz@google.com> | Mon Jan 31 22:14:19 2022 +0000 |
tree | 9d3ced35179cd3910be00b1805c84376549606ce | |
parent | 724ffa4c119c0f4e4680326537961dc0ac10fe8d [diff] |
Handle null from unitialized live data In the onPermissionUsagesChanged() callback we weren't checking whether getPackagePermGroupsLiveData().getValue() was null. However, we were checking in another instance. Make usage consistent by annotating the parameter as Nullable and properly handling null. Bug: 205195921 Bug: 216693713 Test: Manual testing Change-Id: I6d4a2b79492ab4fa5a3df0f3f6b1d85a1331d8e5 (cherry picked from commit 6ce5f9ece75dec3a3b9a3478aa910b8d10b7e86c)