mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 14:31:11 +01:00
modules/client/profile: Ensure there's an eptr before calling rethrow.
This commit is contained in:
parent
d17286515b
commit
34c1b13fa3
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ get__profile(client &client,
|
|||
{
|
||||
// If there was a problem querying locally for this param and the
|
||||
// user is remote, eptr will have a better error for the client.
|
||||
if(!my(user))
|
||||
if(eptr && !my(user))
|
||||
rethrow(eptr, user, param);
|
||||
|
||||
throw;
|
||||
|
|
Loading…
Reference in a new issue