https://issues.apache.org/jira/browse/AMQ-6297 - displayName can also be null - thanks tbish

This commit is contained in:
gtully 2016-05-20 15:33:33 +01:00
parent daf7e85e68
commit 5cc5022d2a
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ public class MulticastDiscoveryAgent implements DiscoveryAgent, Runnable {
for (InterfaceAddress ia : ni.getInterfaceAddresses()) {
if (ia != null && ia.getAddress() instanceof java.net.Inet4Address
&& !ia.getAddress().isLoopbackAddress()
&& !ni.getDisplayName().startsWith("vnic")) {
&& (ni.getDisplayName()==null || !ni.getDisplayName().startsWith("vnic"))) {
possibles.add(ni);
}
}