diff options
author | Michael Wright <michaelwr@google.com> | 2019-03-11 12:54:22 +0000 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2019-03-11 13:13:54 +0000 |
commit | 91c2838a056abf48679e37cac9f1f23b2e4da67d (patch) | |
tree | ca34162abb9080fa1339f03a7542ff3d9273a4b3 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 2fbf90c6ae01c7dab2caab33cfc1005ab0874c30 (diff) |
Protect against null Displays.
Because the display callbacks happen asynchronously, if a display is
added or changed and then immediately removed it may no longer exist by
the time we query DisplayManager about it. This results in an unexpected
null Display object, causing DisplayModeDirector to crash. We guard
against this case, ignoring the display until it gets re-attached.
Fixes: 127875518
Test: manual
Change-Id: I32acd77a095181155dbcb57922f616b2ac57192c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions