On 25/02/2014 08:49, Eric Wang wrote:
Hi Everyone,
I'm working on the test bug
https://bugs.openjdk.java.net/browse/JDK-8035633, There are 4 tests
(one is in a closed test) failed due to NullPointerException.
All tests failed at similar places "if (isWindows &&
ni.getDisplayName().contains("Teredo"))", the root cause is the
NetworkInterface may return null if no display name is available.
so the fix is to make sure the display name is not null before calling
the method "contains("Teredo")", something like "if (isWindows &&
displayName != null && displayName.contains("Teredo"))"
Please let me know if you have any comment. The webrev will be sent
after internal review.
Yes, NetworkInterface's getDisplyName is allowed to return null and it
looks like this wasn't taken into account when these tests were changed
via JDK-8022963 to skip tunnels. Once you have a patch then net-dev
would be the best list to bring it to.
-Alan.