STORM-1339 FIXED Making a preventive fix for a crash in LLPanelPlaces::onTeleportButtonClicked().
parent
735c0dbc5f
commit
5506dca9b9
|
|
@ -299,7 +299,7 @@ void LLLandmarksPanel::onTeleport()
|
|||
}
|
||||
|
||||
LLFolderViewEventListener* listenerp = current_item->getListener();
|
||||
if (listenerp->getInventoryType() == LLInventoryType::IT_LANDMARK)
|
||||
if (listenerp && listenerp->getInventoryType() == LLInventoryType::IT_LANDMARK)
|
||||
{
|
||||
listenerp->openItem();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -584,6 +584,13 @@ void LLPanelPlaces::onTeleportButtonClicked()
|
|||
{
|
||||
if (mPlaceInfoType == LANDMARK_INFO_TYPE)
|
||||
{
|
||||
if (mItem.isNull())
|
||||
{
|
||||
llwarns << "NULL landmark item" << llendl;
|
||||
llassert(mItem.notNull());
|
||||
return;
|
||||
}
|
||||
|
||||
LLSD payload;
|
||||
payload["asset_id"] = mItem->getAssetUUID();
|
||||
LLSD args;
|
||||
|
|
|
|||
Loading…
Reference in New Issue