diff --git a/WMI/Hardware.cs b/WMI/Hardware.cs index ded6c75..572bf4d 100644 --- a/WMI/Hardware.cs +++ b/WMI/Hardware.cs @@ -54,7 +54,9 @@ namespace OpenHardwareMonitor.WMI { Name = hardware.Name; Identifier = hardware.Identifier.ToString(); HardwareType = hardware.HardwareType.ToString(); - Parent = hardware.Parent.Identifier.ToString(); + Parent = (hardware.Parent != null) + ? hardware.Parent.Identifier.ToString() + : ""; } public void Update() { }