Add null check to KeyEventDispatcher.

am: 2a0e48aaf5

Change-Id: Ibd3ec1f898e9e375a3e7a3decb651d4187cdb4a3
This commit is contained in:
Phil Weaver
2016-08-17 17:16:02 +00:00
committed by android-build-merger

View File

@@ -121,7 +121,7 @@ public class KeyEventDispatcher {
Service service = boundServices.get(i);
// Key events are handled only by services that declared
// this capability and requested to filter key events.
if (!service.mRequestFilterKeyEvents) {
if (!service.mRequestFilterKeyEvents || (service.mServiceInterface == null)) {
continue;
}
int filterKeyEventBit = service.mAccessibilityServiceInfo.getCapabilities()