From dac2ae66364789ae9f381ad56157d930686ff29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Andr=C3=A9=20Pearce?= Date: Thu, 17 Jan 2019 23:50:09 +0000 Subject: [PATCH] ARTEMIS-2221 Fix Merge --- .../artemis/core/management/impl/AddressControlImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java index e71aab1a9b..4a81555d56 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java @@ -123,7 +123,7 @@ public class AddressControlImpl extends AbstractControl implements AddressContro public String[] getQueueNames() throws Exception { clearIO(); try { - Bindings bindings = postOffice.lookupBindingsForAddress(addressInfo.getName()); + Bindings bindings = server.getPostOffice().lookupBindingsForAddress(addressInfo.getName()); if (bindings != null) { List queueNames = new ArrayList<>(); for (Binding binding : bindings.getBindings()) { @@ -146,7 +146,7 @@ public class AddressControlImpl extends AbstractControl implements AddressContro public String[] getBindingNames() throws Exception { clearIO(); try { - Bindings bindings = postOffice.lookupBindingsForAddress(addressInfo.getName()); + Bindings bindings = server.getPostOffice().lookupBindingsForAddress(addressInfo.getName()); if (bindings != null) { String[] bindingNames = new String[bindings.getBindings().size()]; int i = 0; @@ -235,7 +235,7 @@ public class AddressControlImpl extends AbstractControl implements AddressContro clearIO(); long totalMsgs = 0; try { - Bindings bindings = postOffice.lookupBindingsForAddress(addressInfo.getName()); + Bindings bindings = server.getPostOffice().lookupBindingsForAddress(addressInfo.getName()); if (bindings != null) { for (Binding binding : bindings.getBindings()) { if (binding instanceof QueueBinding) {