diff --git a/Aaru.Core/Logging/ErrorLog.cs b/Aaru.Core/Logging/ErrorLog.cs index 4d2a1b4bf..57bb02305 100644 --- a/Aaru.Core/Logging/ErrorLog.cs +++ b/Aaru.Core/Logging/ErrorLog.cs @@ -454,10 +454,11 @@ namespace Aaru.Core.Logging { _logSw.WriteLine("SCSI reading LBA {0} operating system error: {1}.", block, errno); _logSw.Flush(); - - return; } + if(senseBuffer is null || senseBuffer.Length == 0) + return; + FixedSense? decodedFixedSense = Sense.DecodeFixed(senseBuffer); DescriptorSense? decodedDescriptorSense = Sense.DecodeDescriptor(senseBuffer); string prettySense = Sense.PrettifySense(senseBuffer);