You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When connecting to an invalid channel, the app crashes. This is because the connection fails in the constructor of ConnectThread, but the caller doesn't check that, and hits an NPE when trying to use the socket.
It would be better to avoid work (= initialize socket) in the constructor of ConnectThread, which is a bad practice
The caller should handle problems like this gracefully
The text was updated successfully, but these errors were encountered:
When connecting to an invalid channel, the app crashes. This is because the connection fails in the constructor of
ConnectThread
, but the caller doesn't check that, and hits an NPE when trying to use the socket.ConnectThread
, which is a bad practiceThe text was updated successfully, but these errors were encountered: