summaryrefslogtreecommitdiff
path: root/src/android/net/ip/IpClient.java
diff options
context:
space:
mode:
authorFrank Li <lifr@google.com>2020-06-24 14:09:54 +0000
committerFrank Li <lifr@google.com>2020-06-24 14:14:46 +0000
commitad90e1bfe13e6a5dc85a33d64c37981ce1ac4408 (patch)
tree6fd4eeb8c0f11386c01a74ef33945fb1960b1474 /src/android/net/ip/IpClient.java
parent65e067f32e512a3aab6d7c01a83c8dd0d3e7f750 (diff)
Fix NullPointerException on addErrorCode when input is Invalid error code
Problem: 1. When the errocode is not defined in DhcpErrorCode enum. Then the DhcpErrorCode.forNumber(errorCode) will return null. 2. Then use null as the parameter cause NullPointerException on addErrorCode. (Because the addErrorCode need nonNullable parameter) Solution: If the errorcode is not defined in the Dhcp ErrorCode enumeration, please use ET_UNKNOWN instead as AddErrorCode parameter, not null. Bug: 151796056 Test: atest Original-Change: https://android-review.googlesource.com/1346103 Merged-In: I43b8415ab98b4cf6520c3240dc544a9f62730a4e Change-Id: I43b8415ab98b4cf6520c3240dc544a9f62730a4e
Diffstat (limited to 'src/android/net/ip/IpClient.java')
0 files changed, 0 insertions, 0 deletions