fix: resolve NRE in DispatchService on system import

This commit is contained in:
Iris System 2025-08-25 11:32:58 +12:00
parent c4a4aad791
commit 97f481120c

View file

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