Description
NetworkInterface of java6 branch is different from NetworkInterface of trunk.
In their constructors, trunk simply assign the addresses to the "addresses" field, but in java6 branch it assign addresses one by one which ignore the situation that passed in addresses may be null.
Merge trunk to java6, or add a if(addresses != null) will solve the NPE error.