Commit db296900 authored by Yi Kong's avatar Yi Kong
Browse files

Fix NetworkInterface#getSubInterfaces throws NPE

childs array was not initialized when an interface has no subinterfaces.

Initialize childs array when contructing NetworkInterface.

Test: Libcore.java.net.NetworkInterface#testGetNetworkInterfaces
Bug: 33844501
Change-Id: I1c9a76165d30715f7f95d8f0d8c8a806949dd394
parent 92294f4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment