diff options
author | angela <angela@lindenlab.com> | 2009-11-10 22:46:58 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2009-11-10 22:46:58 +0800 |
commit | 63195e76cae04f4eb98a3ce3230caae17fa79eca (patch) | |
tree | 0ee2b58ce3cd35baa858f0e9db1ccc0ad193961c /indra/newview/lltexturecache.cpp | |
parent | 5292a3181191179de180fd36bd248a3dba6113b1 (diff) |
check for NULL to prevent crashing
Diffstat (limited to 'indra/newview/lltexturecache.cpp')
-rw-r--r-- | indra/newview/lltexturecache.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index 69a2d1d7a6..6a4b967487 100644 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -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) { |