summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorarangelov <arangelov@google.com>2020-02-11 18:09:48 +0000
committerAntoan Angelov <arangelov@google.com>2020-02-17 11:50:01 +0000
commitc77699997d96c8810412c82b2a833f97a754bfec (patch)
tree48458e94e8550d6e7030e145aaacc97ace40f814 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent06092ad9d6e86f92aba7fafcf4be117c672cfa1f (diff)
Add a null check in canForwardTo for getProfileParent.
PackageManagerService#canForwardTo assumes the method is called from a work profile. However, with the new changes in the intent resolver and share sheet, we use this method from the personal profile as well, in order to determine if an intent is cross-profile or not. Without this null check, we get a NPE when we call canForwardTo from the personal profile. Test: CTS tests are not relevant in this case, as PackageManagerService#canForwardTo is not a public API and the only place it's called from is IntentForwarderActivity, which does not have CTS coverage. Fixes: 149311698 Change-Id: I172f572920c258723b6a51ac35f2abc0c3aabbf8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions