Skip to content

Commit 537a0ed

Browse files
authored
Fix: Fixed app crash when opening details tab in file properties (#11165)
1 parent 17b4a45 commit 537a0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/ViewModels/Properties/FileProperties.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public async void GetSystemFileProperties()
161161
(double?)list.Find(x => x.Property == "System.GPS.LongitudeDecimal").Value);
162162
// Find Encoding Bitrate property and convert it to kbps
163163
var encodingBitrate = list.Find(x => x.Property == "System.Audio.EncodingBitrate");
164-
if (encodingBitrate is not null)
164+
if (encodingBitrate?.Value is not null)
165165
{
166166
var sizes = new string[] { "Bps", "KBps", "MBps", "GBps" };
167167
var order = (int)Math.Floor(Math.Log((uint)encodingBitrate.Value, 1024));

0 commit comments

Comments
 (0)