MAINT-7728 FIXED Viewer crashes if trying to send snapshot via email when region not set

meow-7.2.2
Mnikolenko Productengine 2017-08-21 17:52:22 +03:00
parent 83e7b7a939
commit 9bb54527c4
1 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,8 @@ void LLPanelSnapshotPostcard::sendPostcardFinished(LLSD result)
void LLPanelSnapshotPostcard::sendPostcard()
{
if (!gAgent.getRegion()) return;
// upload the image
std::string url = gAgent.getRegion()->getCapability("SendPostcard");
if (!url.empty())