summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2017-08-21 17:52:22 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2017-08-21 17:52:22 +0300
commit9bb54527c4e0419e4a024330559e75415d914d7e (patch)
treeb4871d484ef4ab2f807c4b66de525db07a77bab0
parent83e7b7a9399ac3f4979d9bb11ea98b9dac77c986 (diff)
MAINT-7728 FIXED Viewer crashes if trying to send snapshot via email when region not set
-rw-r--r--indra/newview/llpanelsnapshotpostcard.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llpanelsnapshotpostcard.cpp b/indra/newview/llpanelsnapshotpostcard.cpp
index 3d18e837af..f3a4cf36ee 100644
--- a/indra/newview/llpanelsnapshotpostcard.cpp
+++ b/indra/newview/llpanelsnapshotpostcard.cpp
@@ -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())