fix(bot): fix a few NPEs

This commit is contained in:
alyssa 2024-10-19 07:27:12 +09:00
parent e88486cb41
commit d997f725e2
4 changed files with 5 additions and 3 deletions

View file

@ -247,7 +247,7 @@ public class DispatchService
{
var repo = _provider.Resolve<ModelRepository>();
var system = await repo.GetSystemByAccount(accountId);
if (system.WebhookUrl == null)
if (system?.WebhookUrl == null)
return;
var data = new UpdateDispatchData();