SL-17753 Crash at LLStatusBar::getNearbyMediaPanel

optionallyStartMusic was called before status bar was initialized
meow-7.2.2
Andrey Kleshchev 2022-07-12 00:07:43 +03:00
parent a3326a4afc
commit fca85429c5
1 changed files with 1 additions and 1 deletions

View File

@ -1959,7 +1959,7 @@ void LLViewerParcelMgr::optionallyStartMusic(const std::string &music_url, const
static LLCachedControl<bool> tentative_autoplay(gSavedSettings, "MediaTentativeAutoPlay", true);
// only play music when you enter a new parcel if the UI control for this
// was not *explicitly* stopped by the user. (part of SL-4878)
LLPanelNearByMedia* nearby_media_panel = gStatusBar->getNearbyMediaPanel();
LLPanelNearByMedia* nearby_media_panel = gStatusBar ? gStatusBar->getNearbyMediaPanel() : NULL;
LLViewerAudio* viewer_audio = LLViewerAudio::getInstance();
// ask mode //todo constants