From abd2a56ddf136fb41940f9d6f2c2668da10aae03 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 2 Sep 2021 22:10:01 +0100 Subject: [PATCH] Fix null reference when converting non-tape images. --- Aaru/Commands/Image/Convert.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aaru/Commands/Image/Convert.cs b/Aaru/Commands/Image/Convert.cs index 4ea15f1af..fcc2b4366 100644 --- a/Aaru/Commands/Image/Convert.cs +++ b/Aaru/Commands/Image/Convert.cs @@ -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;