Add null check to KeyEventDispatcher. am: 2a0e48aaf5

am: 2aab159e33

Change-Id: Ib06fc038c6322bbb9d8cb090abb89f71018be10a
This commit is contained in:
Phil Weaver
2016-08-17 18:22:00 +00:00
committed by android-build-merger

View File

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