0
0
Fork 0
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:
Jason Volk 2019-08-16 01:41:01 -07:00
parent d17286515b
commit 34c1b13fa3

View file

@ -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;