Do not nullexcept if there are no indexes.

This commit is contained in:
2016-12-10 03:54:05 +00:00
parent 0c9dfaa11f
commit cf21ccb2df

View File

@@ -378,7 +378,7 @@ namespace DiscImageChef.Commands
xmlTrk.StartSector = (long)trk.TrackStartSector;
xmlTrk.EndSector = (long)trk.TrackEndSector;
if(trk.Indexes.ContainsKey(0))
if(trk.Indexes != null && trk.Indexes.ContainsKey(0))
{
ulong idx0;
if(trk.Indexes.TryGetValue(0, out idx0))