diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-08-21 17:52:22 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-08-21 17:52:22 +0300 |
commit | 9bb54527c4e0419e4a024330559e75415d914d7e (patch) | |
tree | b4871d484ef4ab2f807c4b66de525db07a77bab0 /indra/newview/llpanelsnapshotpostcard.cpp | |
parent | 83e7b7a9399ac3f4979d9bb11ea98b9dac77c986 (diff) |
MAINT-7728 FIXED Viewer crashes if trying to send snapshot via email when region not set
Diffstat (limited to 'indra/newview/llpanelsnapshotpostcard.cpp')
-rw-r--r-- | indra/newview/llpanelsnapshotpostcard.cpp | 2 |
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()) |