mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: resolve NRE in DispatchService on system import
This commit is contained in:
parent
c4a4aad791
commit
97f481120c
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ public class DispatchService
|
|||
|
||||
var repo = _provider.Resolve<ModelRepository>();
|
||||
var system = await repo.GetSystem(systemId);
|
||||
if (system.WebhookUrl == null)
|
||||
if (system == null || system.WebhookUrl == null)
|
||||
return;
|
||||
|
||||
data.SigningToken = system.WebhookToken;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue