Merge "Add null check to KeyEventDispatcher." into nyc-mr1-dev

This commit is contained in:
Phil Weaver
2016-08-16 19:33:27 +00:00
committed by Android (Google) Code Review

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()