commit | c1992a6f7551e22f14bb3fb92f1bd0b074cdac32 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn | Wed Mar 25 17:24:35 2009 -0700 |
committer | The Android Open Source Project <initial-contribution@android.com> | Wed Mar 25 17:24:35 2009 -0700 |
tree | 313c44432ddf6057c24f1ca0dbe64593e7ba8205 | |
parent | 87d80228cc6b8904da036d51d41252f8301e41d2 [diff] [blame] |
Automated import from //branches/donutburger/...@142727,142727
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; }