From 9de3a3f9385350fb8d6273c637ff5b8608096969 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 2 Nov 2015 22:07:48 +0000 Subject: [PATCH] Examined a fix for #2588 --- src/ClientHandle.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index d3e30fc9c..8897063a0 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -2197,6 +2197,12 @@ void cClientHandle::SendChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializ return; } + if (m_Protocol == nullptr) + { + // TODO (#2588): investigate if and why this occurs + return; + } + m_Protocol->SendChunkData(a_ChunkX, a_ChunkZ, a_Serializer); // Add the chunk to the list of chunks sent to the player: