summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2015-11-02 23:07:48 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2015-11-02 23:07:48 +0100
commit9de3a3f9385350fb8d6273c637ff5b8608096969 (patch)
tree4e369298422955cb468fc49ecb46663383ba05e2
parentMerge pull request #2594 from cuberite/bearbin-patch-1 (diff)
downloadcuberite-9de3a3f9385350fb8d6273c637ff5b8608096969.tar
cuberite-9de3a3f9385350fb8d6273c637ff5b8608096969.tar.gz
cuberite-9de3a3f9385350fb8d6273c637ff5b8608096969.tar.bz2
cuberite-9de3a3f9385350fb8d6273c637ff5b8608096969.tar.lz
cuberite-9de3a3f9385350fb8d6273c637ff5b8608096969.tar.xz
cuberite-9de3a3f9385350fb8d6273c637ff5b8608096969.tar.zst
cuberite-9de3a3f9385350fb8d6273c637ff5b8608096969.zip
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 6 insertions, 0 deletions
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: