Files
ReLibreHardwareMonitor/LibreHardwareMonitorLib
Michael SpiegelandPhyxionNL 8ab4def93a Fix NullReferenceException on linux systems where the specified paths don't exist (#1300)
* feat(SMBios): Handle null reference exception when accessing Board information

Changed the ReadSysFs method in the class SMBios to return an empty string instead of null when unable to find the needed paths on Linux, preventing NullReference Exception when getting the manufacturer and model in the Motherboard class.

* fix(LMSensors): Prevent exception in LMSensors constructor

Introduced string array subDirectories  which is initialized empty. Added checking if the hwmon directory exists otherwise the array subDirectories will stay empty so it does not throw an exception if it can't find the path.

* Simplify.

---------

Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
2024-07-31 17:30:30 +02:00
..
2022-11-18 18:56:10 +01:00
2022-11-10 18:33:44 +01:00