diff -r 99fad54de9f7 -r 99b6bab765f8 WMI/Hardware.cs --- a/WMI/Hardware.cs Mon Oct 18 07:15:31 2010 +0000 +++ b/WMI/Hardware.cs Mon Oct 18 07:18:14 2010 +0000 @@ -54,7 +54,9 @@ 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() { }