diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-13 14:00:30 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-13 14:00:30 +0000 |
commit | 3ac37e9b896e19b6c7ba24aa038d49551c5add38 (patch) | |
tree | 23a0a21be57055f02cf540028b148a5e29aedfdc | |
parent | 710687ce6751dab6afec76b2bc2a4d03568e44ec (diff) |
CID-211
Checker: REVERSE_INULL
Function: LLChicletPanel::findChiclet<LLIMChiclet>(const LLUUID &)
File: /indra/newview/llchiclet.h
-rw-r--r-- | indra/newview/llchiclet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llchiclet.h b/indra/newview/llchiclet.h index b006ae3420..ba17c5970e 100644 --- a/indra/newview/llchiclet.h +++ b/indra/newview/llchiclet.h @@ -1228,12 +1228,15 @@ T* LLChicletPanel::findChiclet(const LLUUID& im_session_id) { LLChiclet* chiclet = *it; + llassert(chiclet); + if (!chiclet) continue; if(chiclet->getSessionId() == im_session_id) { T* result = dynamic_cast<T*>(chiclet); - if(!result && chiclet) + if(!result) { llwarns << "Found chiclet but of wrong type " << llendl; + continue; } return result; } |