mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 22:35:11 +00:00
Fixed the NullReference Exception
This commit is contained in:
@@ -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() { }
|
||||
|
Reference in New Issue
Block a user