commit | 4e829f0aca3db3a1a01999eb7910cf58b9c11058 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn | Wed Mar 25 16:21:55 2009 -0700 |
committer | The Android Open Source Project <initial-contribution@android.com> | Wed Mar 25 16:21:55 2009 -0700 |
tree | adf5afeaa8d09cb8dc35dc73ae9b6eed0ef8308b | |
parent | 95518a712c48c7718eab6301cf348a7e0f1c46d3 [diff] |
Automated import from //branches/master/...@142771,142771
diff --git a/libs/ui/EventHub.cpp b/libs/ui/EventHub.cpp index 3b29b09..7c2fc8e 100644 --- a/libs/ui/EventHub.cpp +++ b/libs/ui/EventHub.cpp
@@ -245,6 +245,7 @@ int32_t id = deviceId & ID_MASK; if (id >= mNumDevicesById || id < 0) return NULL; device_t* dev = mDevicesById[id].device; + if (dev == NULL) return NULL; if (dev->id == deviceId) { return dev; }