Skip to content

Commit c3e8b1d

Browse files
authored
Fix BornToBeRoot#392, check if null (BornToBeRoot#409)
Co-authored-by: BornToBeRoot <BornToBeRoot@users.noreply.github.com>
1 parent 5878459 commit c3e8b1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/NETworkManager.Models/Export/ExportManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ public static void CreateJSON(ObservableCollection<HostInfo> collection, string
718718
{
719719
IPAddress = collection[i].PingInfo.IPAddress.ToString(),
720720
collection[i].Hostname,
721-
MACAddress = collection[i].MACAddress.ToString(),
721+
MACAddress = collection[i].MACAddress?.ToString(),
722722
collection[i].Vendor,
723723
collection[i].PingInfo.Bytes,
724724
Time = Ping.TimeToString(collection[i].PingInfo.Status, collection[i].PingInfo.Time, true),

0 commit comments

Comments
 (0)