Skip to content

Commit

Permalink
NO-JIRA avoiding a NPE if the server is stopped
Browse files Browse the repository at this point in the history
(cherry picked from commit 77989c3)
  • Loading branch information
clebertsuconic committed Aug 7, 2018
1 parent cddedae commit 548459f
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -550,7 +550,10 @@ public void start() throws Exception {
@Override
public void activated() {
try {
messagingServer.addAddressInfo(new AddressInfo(managementNotificationAddress, RoutingType.MULTICAST));
ActiveMQServer usedServer = messagingServer;
if (usedServer != null) {
usedServer.addAddressInfo(new AddressInfo(managementNotificationAddress, RoutingType.MULTICAST));
}
} catch (Exception e) {
ActiveMQServerLogger.LOGGER.unableToCreateManagementNotificationAddress(managementNotificationAddress, e);
}
Expand Down

0 comments on commit 548459f

Please sign in to comment.