summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2016-09-05 19:31:42 +0300
committerandreykproductengine <akleshchev@productengine.com>2016-09-05 19:31:42 +0300
commit4a9d6cd69f6e9291c26a389e6a2eeeb140835007 (patch)
tree337612eb166304f7c73b5abcc6984f2925ede89f /indra/newview
parentecd11724ca97a385bb04d2eb71eaf06c556791fa (diff)
MAINT-6697 make sure we have data to process
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llmeshrepository.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 9577b3ab50..f9461e3132 100644
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -1753,6 +1753,11 @@ bool LLMeshRepoThread::headerReceived(const LLVolumeParams& mesh_params, U8* dat
bool LLMeshRepoThread::lodReceived(const LLVolumeParams& mesh_params, S32 lod, U8* data, S32 data_size)
{
+ if (data == NULL || data_size == 0)
+ {
+ return false;
+ }
+
LLPointer<LLVolume> volume = new LLVolume(mesh_params, LLVolumeLODGroup::getVolumeScaleFromDetail(lod));
std::string mesh_string((char*) data, data_size);
std::istringstream stream(mesh_string);