diff options
| author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-10-15 20:40:57 +0300 |
|---|---|---|
| committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-10-15 20:40:57 +0300 |
| commit | 499ef635899ebc791b1198bfa0c51dfc81e4385e (patch) | |
| tree | 92f06f2a6d10bb47641e18cc602d143fe897737a /indra/newview/llviewermessage.cpp | |
| parent | 1f5f9d2e5964a9bcd187f730ee4c3d6a5357df19 (diff) | |
| parent | 48e282947f424701465cae6dc095e73387e3e863 (diff) | |
Upstream merge from lindenlab/viewer-neko
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 5b9c39af9f..3998a6af15 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -374,6 +374,11 @@ void give_money(const LLUUID& uuid, LLViewerRegion* region, S32 amount, BOOL is_ LL_INFOS("Messaging") << "give_money(" << uuid << "," << amount << ")"<< LL_ENDL; if(can_afford_transaction(amount)) { + if (uuid.isNull()) + { + LL_WARNS() << "Failed to send L$ gift to to Null UUID." << LL_ENDL; + return; + } // gStatusBar->debitBalance(amount); LLMessageSystem* msg = gMessageSystem; msg->newMessageFast(_PREHASH_MoneyTransferRequest); |
