diff --git a/ChiselDebuggerRazor/Code/Templates/RouteTemplator.cs b/ChiselDebuggerRazor/Code/Templates/RouteTemplator.cs index 6f6a78de..e73fe675 100644 --- a/ChiselDebuggerRazor/Code/Templates/RouteTemplator.cs +++ b/ChiselDebuggerRazor/Code/Templates/RouteTemplator.cs @@ -55,7 +55,11 @@ public void AddTemplateParameters(string moduleName, SimpleRouter router, Placem WorkLimiter.AddWork(() => { - var wires = router.PathLines(placeInfo, cancelToken); + List wires; + if (!router.TryPathLines(placeInfo, cancelToken, out wires)) + { + return; + } if (cancelToken.IsCancellationRequested) { return;