mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix when writing subchannel in Aaru Format that doesn't belong to any track. Fixes #421
This commit is contained in:
@@ -4242,8 +4242,9 @@ namespace Aaru.DiscImages
|
||||
track = Tracks.FirstOrDefault(trk => sectorAddress >= trk.TrackStartSector &&
|
||||
sectorAddress <= trk.TrackEndSector);
|
||||
|
||||
if(track.TrackSequence == 0 &&
|
||||
track.TrackStartSector == 0 &&
|
||||
if(track != null &&
|
||||
track.TrackSequence == 0 &&
|
||||
track.TrackStartSector == 0 &&
|
||||
track.TrackEndSector == 0)
|
||||
track.TrackType = TrackType.Data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user