- Added stubs for null checking for the `User*`'s
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-22 21:49:03 +02:00
parent 9205c5cd06
commit dd90aa7a5e
1 changed files with 11 additions and 0 deletions

View File

@ -242,6 +242,17 @@ public class Server : MessageDeliveryTransport
// Lookup the user (destination)
User* toUser = this.authManager.getUser(latest.getDestination());
if(fromUser == null)
{
// TODO: Handle this
}
if(toUser == null)
{
// TODO: Handle this
}
return true;
}
}