diff options
| author | Brad Linden <brad@lindenlab.com> | 2022-12-12 17:59:34 -0800 |
|---|---|---|
| committer | Brad Linden <brad@lindenlab.com> | 2022-12-12 17:59:34 -0800 |
| commit | eb526fec0aadcaf30363fdfb1e253a609bf83acc (patch) | |
| tree | 6071628f41ca793007b645aa30d255044ddbfe43 /indra/newview/llagent.cpp | |
| parent | c9c611fd12f55ac6d6717ba17139ba61a6db581f (diff) | |
| parent | a0c3d69c620a92d73a1008f218680fb4d0ef9255 (diff) | |
Merge remote-tracking branch 'origin/main' into DRTVWR-559
Diffstat (limited to 'indra/newview/llagent.cpp')
| -rw-r--r-- | indra/newview/llagent.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 5250369813..9018a5f168 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -2912,9 +2912,11 @@ void LLAgent::processMaturityPreferenceFromServer(const LLSD &result, U8 perferr bool LLAgent::requestPostCapability(const std::string &capName, LLSD &postData, httpCallback_t cbSuccess, httpCallback_t cbFailure) { - std::string url; - - url = getRegion()->getCapability(capName); + if (!getRegion()) + { + return false; + } + std::string url = getRegion()->getCapability(capName); if (url.empty()) { |
