commit | 19f06fefc0bdb101e27229859a418d3574412f10 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn | Wed Mar 25 15:32:28 2009 -0700 |
committer | The Android Open Source Project <initial-contribution@android.com> | Wed Mar 25 15:32:28 2009 -0700 |
tree | 28139a68e55e98cca6dbc26ddc9b43bf61016694 | |
parent | 2f847b9e052abc6eb5950b733b4718bb7820dd42 [diff] [blame] |
Automated import from //branches/cupcake/...@142663,142663
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; }