WMI Win32_DiskDrive lists USB connected SD Card Readers which in turn have can have a null size if they don't have a SD card in them.
This causes the !String.IsNullOrWhiteSpace(property.Value.ToString()) check to crash out.
Removing this lets the application run
WMI Win32_DiskDrive lists USB connected SD Card Readers which in turn have can have a null size if they don't have a SD card in them. This causes the !String.IsNullOrWhiteSpace(property.Value.ToString()) check to crash out. Removing this lets the application run