MAINT-8323 FIXED Crash in LLInventoryPanel::callbackPurgeSelectedItems(..)

Thu, 22 Feb 2018 18:01:39 +0200

author
maxim_productengine<mnikolenko@productengine.com>
date
Thu, 22 Feb 2018 18:01:39 +0200
changeset 55301
601da0c3034f
parent 55300
26d7d76e7849
child 55302
b0b94907a8a6

MAINT-8323 FIXED Crash in LLInventoryPanel::callbackPurgeSelectedItems(..)

indra/newview/llinventorypanel.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llinventorypanel.cpp	Thu Feb 22 13:20:08 2018 +0200
     1.2 +++ b/indra/newview/llinventorypanel.cpp	Thu Feb 22 18:01:39 2018 +0200
     1.3 @@ -1313,6 +1313,8 @@
     1.4  
     1.5  void LLInventoryPanel::purgeSelectedItems()
     1.6  {
     1.7 +    if (!mFolderRoot.get()) return;
     1.8 +
     1.9      const std::set<LLFolderViewItem*> inventory_selected = mFolderRoot.get()->getSelectionList();
    1.10      if (inventory_selected.empty()) return;
    1.11      LLSD args;
    1.12 @@ -1333,6 +1335,8 @@
    1.13  
    1.14  void LLInventoryPanel::callbackPurgeSelectedItems(const LLSD& notification, const LLSD& response)
    1.15  {
    1.16 +    if (!mFolderRoot.get()) return;
    1.17 +
    1.18      S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
    1.19      if (option == 0)
    1.20      {

mercurial