summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
author Christopher Wiley <wiley@google.com> 2015-11-10 09:44:30 -0800
committer Alex Deymo <deymo@google.com> 2015-11-17 17:49:27 -0800
commit6264c4c194e0bbcd060409e0e8c0abfaae3bdf10 (patch)
treee5a0343c3596d0b0717087ddc27121bfccb3d0f5 /libs/ui/FramebufferNativeWindow.cpp
parent3e4b6d219f1f015cdf16a5ae750acd8050d7d9d9 (diff)
libbinder: Return UNEXPECTED_NULL when appropriate
Return a meaningful and consistent error code when libbinder encounters a null reference that it didn't expect. This allows us to detect these situations and cause a corresponding NullPointerException to be thrown on the remote callsite. While here, consolidate places we read vector<T> from a parcel into a single templated version. This dramatically reduces code duplication. Bug: 25617251 Test: Integration tests asserting that vectors serialize correctly passes. Integration test asserting that we throw NullPointerException on seeing a null reference also passes. (cherry picked from commit 4db672ddccb02b2bd70ddb4812c00a5060174c93) Change-Id: Icdb0b29aaff93e85884314c0304cd786e7b4e34f
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions