diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-02-08 20:25:36 +0200 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-02-08 20:25:36 +0200 |
commit | 1b50125546e898f703879a3fe759fefd442e97b9 (patch) | |
tree | c9267d57fb6850ae5c98bec8d24329bdf8e7a1ef /indra/newview/llfloateravatarpicker.cpp | |
parent | f27ea1aff738f3222c782a7fac5b9172fc3cf67c (diff) |
EXP-1879 FIXED Crash in People floater in mouselook mode.
Diffstat (limited to 'indra/newview/llfloateravatarpicker.cpp')
-rw-r--r-- | indra/newview/llfloateravatarpicker.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llfloateravatarpicker.cpp b/indra/newview/llfloateravatarpicker.cpp index aa66fcf9b8..0290e7cdf0 100644 --- a/indra/newview/llfloateravatarpicker.cpp +++ b/indra/newview/llfloateravatarpicker.cpp @@ -63,6 +63,11 @@ LLFloaterAvatarPicker* LLFloaterAvatarPicker::show(select_callback_t callback, // *TODO: Use a key to allow this not to be an effective singleton LLFloaterAvatarPicker* floater = LLFloaterReg::showTypedInstance<LLFloaterAvatarPicker>("avatar_picker"); + if (!floater) + { + llwarns << "Cannot instantiate avatar picker" << llendl; + return NULL; + } floater->mSelectionCallback = callback; floater->setAllowMultiple(allow_multiple); |