mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-30 22:05:08 +00:00
Fixed the NullReference Exception
This commit is contained in:
@@ -54,7 +54,9 @@ namespace OpenHardwareMonitor.WMI {
|
|||||||
Name = hardware.Name;
|
Name = hardware.Name;
|
||||||
Identifier = hardware.Identifier.ToString();
|
Identifier = hardware.Identifier.ToString();
|
||||||
HardwareType = hardware.HardwareType.ToString();
|
HardwareType = hardware.HardwareType.ToString();
|
||||||
Parent = hardware.Parent.Identifier.ToString();
|
Parent = (hardware.Parent != null)
|
||||||
|
? hardware.Parent.Identifier.ToString()
|
||||||
|
: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Update() { }
|
public void Update() { }
|
||||||
|
Reference in New Issue
Block a user