Closed GoogleCodeExporter closed 9 years ago
wow thank you ! I totally forgot that null value possibility... already fixed
similar
one in the HTTPServer class (I'm also changing it , that shouldn't prevent the
network interface to be scanned)
wish every issues were like yours :)
Original comment by ps3mediaserver@gmail.com
on 15 Jan 2009 at 8:45
Maybe you should totaly ignore such interfaces, my system have a lot interfaces
without any ip addreses attached. Additional check is needed.
I suggest you to list interfaces with ip addresses, this should discard all
unusable
interfaces.
--
while (enm.hasMoreElements())
{
NetworkInterface ni = enm.nextElement();
// check for interface has at leat one ip address.
if ( ni.getInetAddresses().hasMoreElements() )
{
names.add(ni.getName());
String displayName = ni.getDisplayName();
if ( displayName == null )
displayName = ni.getName();
interfaces.add(displayName.trim());
}
}
--
Original comment by A.Neshe...@gmail.com
on 15 Jan 2009 at 9:32
thanks
Original comment by ps3mediaserver@gmail.com
on 16 Jan 2009 at 12:18
Original issue reported on code.google.com by
A.Neshe...@gmail.com
on 15 Jan 2009 at 8:26