diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-08 13:20:03 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-08 13:20:03 +0000 |
commit | 8eba0c4029a58616e82600e4a6b866c0b76096b3 (patch) | |
tree | e2005afe78ba3a506ba2a4ed85ac57ba88aacac3 /indra/llui/llview.cpp | |
parent | 4e28c10971dc4f9a52a7b3f109143dbce3528d21 (diff) |
Add some asserts to catch some null derefs that, at least, the render-pipeline code seems to be hitting.
Diffstat (limited to 'indra/llui/llview.cpp')
-rw-r--r-- | indra/llui/llview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp index f1b08c380b..63e627ceb5 100644 --- a/indra/llui/llview.cpp +++ b/indra/llui/llview.cpp @@ -1720,6 +1720,7 @@ LLView* LLView::findChildView(const std::string& name, BOOL recurse) const for ( child_it = mChildList.begin(); child_it != mChildList.end(); ++child_it) { LLView* childp = *child_it; + llassert(childp); if (childp->getName() == name) { return childp; @@ -1731,6 +1732,7 @@ LLView* LLView::findChildView(const std::string& name, BOOL recurse) const for ( child_it = mChildList.begin(); child_it != mChildList.end(); ++child_it) { LLView* childp = *child_it; + llassert(childp); LLView* viewp = childp->findChildView(name, recurse); if ( viewp ) { |