diff options
author | Kevin <kevhan@google.com> | 2019-05-14 14:46:35 -0700 |
---|---|---|
committer | Kevin Han <kevhan@google.com> | 2019-05-14 22:38:10 +0000 |
commit | 8b62e317efc090e91212fad6731d33c2e7fde126 (patch) | |
tree | 76698e48eb3f466a20fa36e8046aa16a8860f3f7 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | dfae02f9289db3037197a81deb342c9f3c10c4c6 (diff) |
Fix legacy recents crash on Go devices
Go does not have PIP enabled and thus does not put the PipUI component
when starting up System UI service componenets. However, as part of
moving things to legacy recents, we are now always listening to PIP menu
events even with the feature disabled and we hit a NPE since we get a
null component. This CL adds a simple null check and backs out if we
don't have the component.
Bug: 132703125
Test: No longer crashes on KB3 Go device
Change-Id: I55e4fc30dc392a8052850a726e756b03fd4c91f6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions