summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventReceiver.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2021-11-18 10:01:27 -0800
committer Siarhei Vishniakou <svv@google.com> 2021-11-18 10:24:47 -0800
commit2b03097e1d214cda46a72cd236ca31c75492a25a (patch)
tree3de4594ed1b075fada09082998fef8e58bb45be7 /libs/gui/DisplayEventReceiver.cpp
parent7aa3e9498036bd58e5e73f3808baa93447e267fb (diff)
Ensure wallpaper connection is valid before canceling its events
The InputDispatcher function 'synthesizeCancelationEventsForConnectionLocked' expects non-null connection. Ideally, we would refactor this function to receive Connection&. However, this connection needs to be passed to other functions called within, so for simplicity, we are keeping the incoming parameter as sp<Connection>. That means that the called must ensure that the connection is not null. Fix the previous wallpaper CL by checking if the connection is null. Bug: 206651192 Test: atest inputflinger_tests Change-Id: Id6d9235144606a629dfbd2614e211412def1a68e
Diffstat (limited to 'libs/gui/DisplayEventReceiver.cpp')
0 files changed, 0 insertions, 0 deletions