From d081edc17911033ad264751cf147b8f5bf146adf Mon Sep 17 00:00:00 2001 From: Rebecca Wallander Date: Tue, 19 Dec 2023 14:47:50 +0100 Subject: [PATCH] Check title keys resume for null when not a DVD Video (#827) --- Aaru.Core/Devices/Dumping/Sbc/Cache.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Aaru.Core/Devices/Dumping/Sbc/Cache.cs b/Aaru.Core/Devices/Dumping/Sbc/Cache.cs index c6e727ed4..2f164ab02 100644 --- a/Aaru.Core/Devices/Dumping/Sbc/Cache.cs +++ b/Aaru.Core/Devices/Dumping/Sbc/Cache.cs @@ -131,14 +131,14 @@ void ReadCacheData(in ulong blocks, in uint maxBlocksToRead, in uint blockSi 0, 0, 0, 0, 0 }, i + j, SectorTagType.DvdTitleKeyDecrypted); - _resume.MissingTitleKeys.Remove(i + j); + _resume.MissingTitleKeys?.Remove(i + j); continue; } CSS.DecryptTitleKey(discKey, key, out tmpBuf); outputFormat.WriteSectorTag(tmpBuf, i + j, SectorTagType.DvdTitleKeyDecrypted); - _resume.MissingTitleKeys.Remove(i + j); + _resume.MissingTitleKeys?.Remove(i + j); if(_storeEncrypted) continue;