summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-02-12 12:12:26 -0500
committerJohn Spurlock <jspurlock@google.com>2014-02-12 12:35:10 -0500
commitda9a3bed8e1aa7d7867291a123466bb0a3be5bb0 (patch)
tree5ff443cee4c06f021e2ea9325fd0b50c52c59b1b /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent3ff18faac21553f027cdb1ff4a98447f333750bd (diff)
Improve error handling in listener services.
Check explicitly for null listeners in NMS, throwing IllegalArgumentException (on the small list of exceptions that survive RPC boundaries) with a message. Normally this situation is caused by listeners that attempt to perform NM-related actions before they are bound. Check for this case in the base NLS class and avoid the call to NM if we know it will fail. Although it's tempting to throw an IllegalStateException on the client side, preserve the existing semantics for backwards-compatibility purposes. That is, silently fail (or return null) - and provide a log warning. Bug:12805707 Change-Id: I0d92fd0d460a8592e8a23fd8fd718ae2ba3bd4c7
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions