summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2017-05-04 10:19:07 -0700
committerBryce Lee <brycelee@google.com>2017-05-05 07:09:43 -0700
commit943ebe705cece8f643d9d7ace005322ddf114d86 (patch)
treecb2a022ed8ac4d61575c28e185e8edff7468f54e /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf996c71431519e68645e652f90b4e9a5cf167874 (diff)
Prevent NPE in ActivityStack#shouldbeVisible.
If there is a visibleBehind activity, we check to see if the top activity in the top stack is not fullscreen. However, it is possible for the top stack to be empty. This can happen if the previously top activity is being re-installed. This changelist addresses the issue by checking if the top activity is null before referencing it. Change-Id: I6de904bed1c7035ed1e112c9cacc1b6c2bac4e8f Fixes: 32180256 Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackTests#testShouldBeVisibleWithVisibleBehindActivity
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions