summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Yunfan Chen <yunfanc@google.com> 2024-08-06 15:25:18 +0000
committer Yunfan Chen <yunfanc@google.com> 2024-08-06 15:31:47 +0000
commit8585329205c5538e220f2e97f590a770287a65c8 (patch)
tree52a811c80efbaab483b60c9ac1a0f1181766cbdb /api/api_test.go
parentddfdfdd217a8149aaccab841421b648ffe65a047 (diff)
Null check before access display cutout
In the gesture pointer event listener, check the existence of display before accessing the display cutout. When the system server crashes, the display could become null. Accessing it will cause NPE and will interrupt the system server restart and causing the entire device crashes and reboot. Test: build Bug: 354298618 Flag: EXEMPT bugfix Change-Id: I5444a24ba3d77d3018bc8864c2f72e7c19809962
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions