mirror of https://github.com/apache/activemq.git
Handle the case where the remote doesn't set any properties resulting in
a null instance being returned from the properties getter.
This commit is contained in:
parent
36237cb30f
commit
f595f3c20d
|
@ -532,7 +532,8 @@ public class AmqpConnection extends AmqpAbstractResource<Connection> implements
|
|||
@Override
|
||||
protected void doOpenCompletion() {
|
||||
// If the remote indicates that a close is pending, don't open.
|
||||
if (!getEndpoint().getRemoteProperties().containsKey(CONNECTION_OPEN_FAILED)) {
|
||||
if (getEndpoint().getRemoteProperties() == null ||
|
||||
!getEndpoint().getRemoteProperties().containsKey(CONNECTION_OPEN_FAILED)) {
|
||||
|
||||
if (!isIdleProcessingDisabled()) {
|
||||
// Using nano time since it is not related to the wall clock, which may change
|
||||
|
|
Loading…
Reference in New Issue