We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ceef571 + 495b4ad commit 7d8bc3bCopy full SHA for 7d8bc3b
Microsoft.Toolkit.Uwp/Helpers/Network/ConnectionInformation.cs
@@ -68,7 +68,12 @@ public virtual void UpdateConnectionInformation(ConnectionProfile profile)
68
ConnectivityLevel = profile.GetNetworkConnectivityLevel();
69
ConnectionCost = profile.GetConnectionCost();
70
SignalStrength = profile.GetSignalBars();
71
- networkNames.AddRange(profile.GetNetworkNames());
+
72
+ var names = profile.GetNetworkNames();
73
+ if (names?.Count > 0)
74
+ {
75
+ networkNames.AddRange(names);
76
+ }
77
78
switch (ConnectivityLevel)
79
{
0 commit comments