Skip to content

Commit

Permalink
Handle the case where the remote doesn't set any properties resulting in
Browse files Browse the repository at this point in the history
a null instance being returned from the properties getter.
  • Loading branch information
tabish121 committed Jun 15, 2016
1 parent 36237cb commit f595f3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ public void onTransportError(Throwable cause) {
@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
Expand Down

0 comments on commit f595f3c

Please sign in to comment.