Fix null reference when converting non-tape images.

This commit is contained in:
2021-09-02 22:10:01 +01:00
parent 1cbfb8c021
commit abd2a56ddf

View File

@@ -1088,7 +1088,7 @@ namespace Aaru.Commands.Image
uint sectorsToDo;
if(inputTape.IsTape)
if(inputTape?.IsTape == true)
sectorsToDo = 1;
else if(inputFormat.Info.Sectors - doneSectors >= (ulong)count)
sectorsToDo = (uint)count;