commit | 0692aff5c5aba22060f35c8204dbb6707fdb25dc | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Tue Jul 02 11:53:17 2024 -0700 |
committer | Patrick Rohr <prohr@google.com> | Tue Jul 02 11:53:17 2024 -0700 |
tree | 1f1333759f00203dc1e0a562beae12f5a7877241 | |
parent | 2d68bc21352f26482a8c2f875977bb812a8a61eb [diff] |
Add more consistent null checks This change moves the null check into the service implementation. Since exceptions on oneway binder interfaces are ignored (across process), the code was changed to just return early instead. This also adds a couple of Objects.requireNonNull() assertions in TetheringManager to assert the existing @NonNull annotation. Test: TH Bug: 337167681 Change-Id: I5301ed084bb26c2f910041e9b25314f8181718d1