Skip to content

Commit

Permalink
Merge branch 'fix/SDK-4490_crash-in-commandGetUA-procresult' into 're…
Browse files Browse the repository at this point in the history
…lease/v7.12.1'

SDK-4490. Crash in CommandGetUA::procresult()

See merge request sdk/sdk!5989
  • Loading branch information
Amit Singh committed Nov 11, 2024
2 parents 6073288 + 83cf2d3 commit 6c3aee8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3700,7 +3700,9 @@ bool CommandGetUA::procresult(Result r, JSON& json)
const string* oldVersion = u->getattrversion(ATTR_KEYS);
if (oldValue)
{
LOG_warn << "Replacing ^!keys value by previous version " << *oldVersion << " current: " << version;
LOG_warn << "Replacing ^!keys value by previous version "
<< (oldVersion ? *oldVersion : "[NA]")
<< " current: " << version;
const string* oldValue = u->getattr(ATTR_KEYS);
assert(oldValue);
value = *oldValue;
Expand Down

0 comments on commit 6c3aee8

Please sign in to comment.