From 9f50b6942ed65330493c2757fedf885fc509e9dd Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Tue, 1 Oct 2013 18:49:53 +0200 Subject: [PATCH] Fix random crashes when opening HTTP debug console. --- indra/newview/aihttpview.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indra/newview/aihttpview.cpp b/indra/newview/aihttpview.cpp index ec9e3acc6..b5c5c4538 100644 --- a/indra/newview/aihttpview.cpp +++ b/indra/newview/aihttpview.cpp @@ -293,7 +293,12 @@ AIHTTPView::~AIHTTPView() U32 AIHTTPView::updateColumn(int col, U32 start) { - llassert(col <= mStartColumn.size()); + if (col > mStartColumn.size()) + { + // This happens when AIGLHTTPHeaderBar::draw is called before AIServiceBar::draw, which + // happens when there are no services (visible) at the moment the HTTP console is opened. + return start; + } if (col == mStartColumn.size()) { mStartColumn.push_back(start);