sacOO7 / socketcluster-client-java

Native java and android client for socketcluster framework in node.js
http://socketcluster.io/
Apache License 2.0
94 stars 43 forks source link

Add null check to websocket #20

Closed AUT0CRAT closed 6 years ago

AUT0CRAT commented 6 years ago

If the socket is connected inside a service and the application is terminated by removing the app from the recents, the socket is not null but the WebSocket becomes null. So checking is connected causes a null pointer exception.