check for NULL to prevent crashing

master
angela 2009-11-10 22:46:58 +08:00
parent 5292a31811
commit 63195e76ca
1 changed files with 2 additions and 0 deletions

View File

@ -1543,6 +1543,8 @@ bool LLTextureCache::readComplete(handle_t handle, bool abort)
handle_map_t::iterator iter = mReaders.find(handle);
llassert_always(iter != mReaders.end() || abort);
LLTextureCacheWorker* worker = iter->second;
if (!worker)
return false;
bool res = worker->complete();
if (res || abort)
{