Fix checking track does not exist.

This commit is contained in:
2020-06-21 14:49:25 +01:00
parent 5ebb465901
commit e4ce5bc32d
11 changed files with 37 additions and 37 deletions

View File

@@ -817,7 +817,7 @@ namespace Aaru.Core.Devices.Dumping
{
Track track = tracks.FirstOrDefault(t => t.TrackSequence == kvp.Key);
if(track.TrackSequence == 0)
if(track is null)
continue;
_dumpLog.WriteLine("Setting flags for track {0}...", track.TrackSequence);