Skip to content

Commit 0d58188

Browse files
authored
Merge pull request #58 from leonid-dudnik/master
ConfigGateway - IPv4Gateway NullReferenceException during launch fixed.
2 parents a19055c + ad51f4d commit 0d58188

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/NETworkManager/ViewModels/Applications/NetworkInterfaceViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public NetworkInterfaceInfo SelectedNetworkInterface
144144
ConfigEnableStaticIPAddress = true;
145145
ConfigIPAddress = value.IPv4Address.FirstOrDefault().ToString();
146146
ConfigSubnetmaskOrCidr = value.Subnetmask.FirstOrDefault().ToString();
147-
ConfigGateway = value.IPv4Gateway.FirstOrDefault().ToString();
147+
ConfigGateway = (value.IPv4Gateway == null) ? value.IPv4Gateway.ToString() : string.Empty;
148148
}
149149

150150
if (value.DNSAutoconfigurationEnabled)

0 commit comments

Comments
 (0)