Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ad90e1bf authored by Frank Li's avatar Frank Li
Browse files

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
parent 65e067f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment