commit | b68b87bc7fb012615bda386f6971e82326280761 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Tue Jun 23 00:42:32 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jun 23 00:42:32 2020 +0000 |
tree | fc33b34e32328391564e33888d6dc5ca551c5a9f | |
parent | 7cf6872c4cc6745c769635bebf5a8e3b5ac360ff [diff] | |
parent | 402bbb4a570644c0f0a5cac6c6740db34e759f0b [diff] |
Merge "Ensure connection is non-null" into rvc-dev am: 402bbb4a57 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11902845 Change-Id: I80602fec24c4d5701ff6a4ed16cf3d61609d3e73
diff --git a/services/inputflinger/dispatcher/InputDispatcher.cpp b/services/inputflinger/dispatcher/InputDispatcher.cpp index 3865f29..f011992 100644 --- a/services/inputflinger/dispatcher/InputDispatcher.cpp +++ b/services/inputflinger/dispatcher/InputDispatcher.cpp
@@ -717,7 +717,7 @@ for (TouchedMonitor& gestureMonitor : gestureMonitors) { sp<Connection> connection = getConnectionLocked(gestureMonitor.monitor.inputChannel->getConnectionToken()); - if (connection->responsive) { + if (connection != nullptr && connection->responsive) { // This monitor could take more input. Drop all events preceding this // event, so that gesture monitor could get a chance to receive the stream ALOGW("Pruning the input queue because %s is unresponsive, but we have a "