WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5408843

Browse files
committed
Merge pull request codebutler#14 from orenda/patch-1
Update SocketIOClient.java - onError failed on nullPointerException
2 parents 96ae660 + dad5c6f commit 5408843

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/codebutler/android_websockets/SocketIOClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ public void disconnect() throws IOException {
267267
}
268268

269269
private void cleanup() {
270-
mClient.disconnect();
270+
if (mClient != null)
271+
mClient.disconnect();
271272
mClient = null;
272273

273274
mSendLooper.quit();

0 commit comments

Comments
 (0)