mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-18 08:02:56 -04:00
Fixed null pointer in TCPServer
This commit is contained in:
@@ -268,7 +268,7 @@ public class TCPServer {
|
||||
return true;
|
||||
}
|
||||
} catch (IOException e) {
|
||||
if (e.getMessage().toLowerCase(Locale.US).contains("connection reset"))
|
||||
if (e.getMessage() != null && e.getMessage().toLowerCase(Locale.US).contains("connection reset"))
|
||||
Log.e("TCPServer", "Connection Reset with %s", s.socket().getRemoteSocketAddress());
|
||||
else {
|
||||
Log.e("TCPServer", e);
|
||||
|
||||
Reference in New Issue
Block a user