mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 07:17:56 +00:00
fix(bot): fix a few NPEs
This commit is contained in:
parent
e88486cb41
commit
d997f725e2
4 changed files with 5 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue