diff options
author | Vinit Deshapnde <vinitd@google.com> | 2013-06-25 19:45:03 -0700 |
---|---|---|
committer | Vinit Deshapnde <vinitd@google.com> | 2013-06-25 19:45:03 -0700 |
commit | 8ed09e893f6a4b6a4f6503186515b8f6978baa14 (patch) | |
tree | 1d5e5b0eecbe6d8eb92a84b3d253bb419fc8a73e /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 28dd15b2d48752f8ea86d1fe10e31da3eeba5bb0 (diff) |
Fix an NPE in NsdManager
The NPE happens because NSD Manager doesn't always notify with a 'good'
notification for SERVICE_FOUND. It can get in a situation where a
SERVICE_FOUND is recevied from MDnsDs demon when processing StopDiscovery
on the messaging thread. When that happens, NsdService sends a message
to NsdManager with an invalid index of the listener.
The fix is twofold. First, we fix NsdService to not generate a message if
it doesn't have a good listener index. And second, we also fix NsdManager
to watch for invalid index.
Change-Id: I3d63af10bded13c72e8e437a1ebf74a666760432
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions