Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #621 #622

Merged
merged 3 commits into from
Nov 22, 2017
Merged

Fix for #621 #622

merged 3 commits into from
Nov 22, 2017

Conversation

marci4
Copy link
Collaborator

@marci4 marci4 commented Nov 22, 2017

This is a fix for #621.
It also includes a test for #580, which still fails sometimes (see #620)

Description

We check for the readystate of the connection in the decode() method.

Related Issue

Fixes #621

Motivation and Context

Change is required otherwise the caught exception will happen

How Has This Been Tested?

New Test (Issue621Test)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Added a check in decode() to make sure that the connection is still
open.
@marci4 marci4 added this to the Release 1.3.7 milestone Nov 22, 2017
@marci4 marci4 added this to To do in Development via automation Nov 22, 2017
@marci4 marci4 merged commit 75d7f09 into TooTallNate:master Nov 22, 2017
Development automation moved this from To do to Done Nov 22, 2017
@marci4 marci4 removed this from Done in Development Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

conn.close() in server's onOpen method causes null pointer exception
1 participant