Added some null checks.

This commit is contained in:
Shyotl
2011-03-02 20:28:59 -06:00
parent 56b327ff97
commit 3c29dd3c20
4 changed files with 58 additions and 22 deletions

View File

@@ -172,9 +172,8 @@ BOOL LLViewerObjectList::removeFromLocalIDTable(const LLViewerObject &object)
if(object.getRegion())
{
U32 local_id = object.mLocalID;
LLHost region_host = object.getRegion()->getHost();
U32 ip = region_host.getAddress();
U32 port = region_host.getPort();
U32 ip = object.getRegion()->getHost().getAddress();
U32 port = object.getRegion()->getHost().getPort();
U64 ipport = (((U64)ip) << 32) | (U64)port;
U32 index = sIPAndPortToIndex[ipport];