-
Notifications
You must be signed in to change notification settings - Fork 979
NullPointerException in Socket.java #727
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Same I think. Unfortunately, the stack trace is so short, I can't determine the source. |
I am Working on an Android Project in Kotlin that uses this library for socket. Please provide any fix or update in the library. Here is the stack trace: (io.socket.client.Socket$6$1.run (Socket.java:232))
|
Clearing the buffer upon timeout could lead to: ``` java.util.ConcurrentModificationException at java.base/java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:970) at java.base/java.util.LinkedList$ListItr.next(LinkedList.java:892) at io.socket.client.Socket$6$1.run(Socket.java:232) at java.base/java.util.TimerThread.mainLoop(Timer.java:556) at java.base/java.util.TimerThread.run(Timer.java:506) ``` Related: - #710 - #727 - #758 - #759
This should be fixed by b00ae8e, included in version Please reopen if needed. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Sometimes there is a crash when trying to connect while there is no connectivity (Android device in airplane mode)
To Reproduce
Please fill the following code example:
Line 232 in Socket.java
Socket.IO client version:
2.1.0
Java client
The crash is happening when accessing
iterator.next().id
It happened once on an obfuscated build, this is the stacktrace:
Expected behavior
Failed connection without crashing
Platform:
Additional context
Looks like one of the items in the iterator is null
The text was updated successfully, but these errors were encountered: