commit | 101dbf52627dbaa85fbdab154f1f1b795a23364f | [log] [tgz] |
---|---|---|
author | Paul Hu <paulhu@google.com> | Wed Aug 09 16:05:20 2023 +0800 |
committer | Paul Hu <paulhu@google.com> | Thu Aug 10 14:19:01 2023 +0800 |
tree | ecbf269185c7d6ccdfebb35e2efdd55df05f9cae | |
parent | 8ba50ae30fe0abdf9f7e7f0b67c60574d8171671 [diff] |
Fix NullPointerException on NsdService The NsdService will throw a NPE if a new client is registered with a null INsdManagerCallback object. To avoid this, perform a null check before registering a new client and throw an IllegalArgumentException if the callback is null. Bug: 293285797 Test: atest FrameworksNetTests Change-Id: Id61e27873591031c3fe383879aee0d40eebc08b3