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

teardown on never connected RelpConnection throws npe #63

Open
kortemik opened this issue May 3, 2024 · 0 comments
Open

teardown on never connected RelpConnection throws npe #63

kortemik opened this issue May 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kortemik
Copy link
Member

kortemik commented May 3, 2024

Describe the bug

Cannot invoke "java.nio.channels.SocketChannel.close()" because "this.socketChannel" is null> java.lang.NullPointerException: Cannot invoke "java.nio.channels.SocketChannel.close()" because "this.socketChannel" is null
        at com.teragrep.rlp_01.RelpClientPlainSocket.close(RelpClientPlainSocket.java:150)
        at com.teragrep.rlp_01.RelpConnection.tearDown(RelpConnection.java:169)

when connection has never been connected

Expected behavior
shouldn't throw, should just be no-op because there is nothing to teardown

How to reproduce
create new RelpConnection and immediately call teardown() on it.

Screenshots

Software version
4.0.1

Desktop (please complete the following information if relevant):

  • OS:
  • Browser:
  • Version:

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant