summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkCapabilitiesTest.java
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2021-11-15 18:17:33 +0900
committerChalard Jean <jchalard@google.com>2021-11-15 21:18:25 +0900
commitdece0d805fe0de736a410a11e4866d1150bed98e (patch)
treed2f43ff346a7d4f77fa10bd473cd3069d10b28c2 /tests/common/java/android/net/NetworkCapabilitiesTest.java
parentff8169207713cb447d59df13aabf670b0f74ee5a (diff)
S- not to crash on NetworkInfo(null) or setDetailedState(null)
When NetworkInfo(null) or setDetailedState(null, any, any) are called, S used to not crash but plant a null bomb for later which may explode in some calls (notably, parceling) : see the bug referenced below for details. To help catching these errors earlier a patch was made to crash as soon as one of these methods is called with a null argument, but this will also crash incorrect use on existing code that may never actually step on the mine, crashing code that used not to crash. For safety, implement the new behavior only on T. Bug: 145972387 Test: NetworkInfoTest Change-Id: Ib710497d83b2d26439c2bd4d2f572310db97d6fd
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions