We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87aa4aa commit 2bccabeCopy full SHA for 2bccabe
Files/DataModels/NavigationControlItems/DriveItem.cs
@@ -179,7 +179,7 @@ public async Task UpdatePropertiesAsync()
179
var properties = await Root.Properties.RetrievePropertiesAsync(new[] { "System.FreeSpace", "System.Capacity" })
180
.AsTask().WithTimeoutAsync(TimeSpan.FromSeconds(5));
181
182
- if (properties["System.Capacity"] != null && properties["System.FreeSpace"] != null)
+ if (properties != null && properties["System.Capacity"] != null && properties["System.FreeSpace"] != null)
183
{
184
MaxSpace = ByteSize.FromBytes((ulong)properties["System.Capacity"]);
185
FreeSpace = ByteSize.FromBytes((ulong)properties["System.FreeSpace"]);
0 commit comments