Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Remove Size value from WMI query #13

Merged
merged 2 commits into from
Mar 4, 2019
Merged

Remove Size value from WMI query #13

merged 2 commits into from
Mar 4, 2019

Conversation

boingball
Copy link
Contributor

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
Remove Size value from WMI query
@danielhogg danielhogg merged commit 216022f into Scope-IT:master Mar 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants