diff --git a/windows/WinUI/NetworkMonitor.cs b/windows/WinUI/NetworkMonitor.cs index 4877d34ca..c276079d0 100644 --- a/windows/WinUI/NetworkMonitor.cs +++ b/windows/WinUI/NetworkMonitor.cs @@ -102,6 +102,11 @@ namespace WinUI private void apiNetworkCallback(List networks) { + if (networks == null) + { + return; + } + lock (_knownNetworks) { _knownNetworks = _knownNetworks.Union(networks, new NetworkEqualityComparer()).ToList();