From 6c87f54b522aebdc12856bc9a951d044098a1511 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Mon, 20 May 2019 17:08:32 -0700 Subject: [PATCH] Fixes #71 --- src/DeviceInfo.Plugin/DeviceInfo.desktop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DeviceInfo.Plugin/DeviceInfo.desktop.cs b/src/DeviceInfo.Plugin/DeviceInfo.desktop.cs index 21a6703..1064988 100644 --- a/src/DeviceInfo.Plugin/DeviceInfo.desktop.cs +++ b/src/DeviceInfo.Plugin/DeviceInfo.desktop.cs @@ -25,7 +25,7 @@ public DeviceInfoImplementation() nic.NetworkInterfaceType == NetworkInterfaceType.Ethernet || nic.NetworkInterfaceType == NetworkInterfaceType.Wireless80211) .Select(nic => nic.GetPhysicalAddress().ToString()) - .First(); + .FirstOrDefault(); public string Model { get; } = Environment.OSVersion.Platform.ToString();