From b6e36275bb0d1e8e0719b04dbca5406a7bf41134 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Sun, 3 Mar 2019 21:21:49 -0500 Subject: [PATCH] Don't crash, at least --- indra/newview/llfloatermarketplacelistings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp index 1194d12b0..20dc2839b 100644 --- a/indra/newview/llfloatermarketplacelistings.cpp +++ b/indra/newview/llfloatermarketplacelistings.cpp @@ -545,7 +545,7 @@ void LLFloaterMarketplaceListings::updateView() { // Just show the loading indicator in that case and fetch the data (fetch will be skipped if it's already loading) mInventoryInitializationInProgress->setVisible(true); - mPanelListings->setVisible(FALSE); + if (mPanelListings) mPanelListings->setVisible(FALSE); fetchContents(); return; } @@ -562,12 +562,12 @@ void LLFloaterMarketplaceListings::updateView() // We need to rebuild the tabs cleanly the first time we make them visible setPanels(); } - mPanelListings->setVisible(TRUE); + if (mPanelListings) mPanelListings->setVisible(TRUE); mInventoryPlaceholder->setVisible(FALSE); } else { - mPanelListings->setVisible(FALSE); + if (mPanelListings) mPanelListings->setVisible(FALSE); mInventoryPlaceholder->setVisible(TRUE); std::string text;