mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-6297 - null check for case where interface has no bindings
This commit is contained in:
parent
991d69f387
commit
daf7e85e68
|
@ -348,7 +348,7 @@ public class MulticastDiscoveryAgent implements DiscoveryAgent, Runnable {
|
||||||
if (ni.supportsMulticast()
|
if (ni.supportsMulticast()
|
||||||
&& ni.isUp()) {
|
&& ni.isUp()) {
|
||||||
for (InterfaceAddress ia : ni.getInterfaceAddresses()) {
|
for (InterfaceAddress ia : ni.getInterfaceAddresses()) {
|
||||||
if (ia.getAddress() instanceof java.net.Inet4Address
|
if (ia != null && ia.getAddress() instanceof java.net.Inet4Address
|
||||||
&& !ia.getAddress().isLoopbackAddress()
|
&& !ia.getAddress().isLoopbackAddress()
|
||||||
&& !ni.getDisplayName().startsWith("vnic")) {
|
&& !ni.getDisplayName().startsWith("vnic")) {
|
||||||
possibles.add(ni);
|
possibles.add(ni);
|
||||||
|
|
Loading…
Reference in New Issue