Scope-IT / marksman

Windows agent for Snipe-IT asset management system
Apache License 2.0
132 stars 23 forks source link

Remove Size value from WMI query #13

Closed boingball closed 5 years ago

boingball commented 5 years ago

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