From e9f01c7a108deda99088e7ba5c05dc9e9a8b1d6f Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 5 Jan 2023 22:30:56 -0800 Subject: [PATCH] Make ImpulseReactor check safer for null values --- BurnOutSharp/ProtectionType/ImpulseReactor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BurnOutSharp/ProtectionType/ImpulseReactor.cs b/BurnOutSharp/ProtectionType/ImpulseReactor.cs index f6e61cec..e6444ab0 100644 --- a/BurnOutSharp/ProtectionType/ImpulseReactor.cs +++ b/BurnOutSharp/ProtectionType/ImpulseReactor.cs @@ -32,7 +32,7 @@ namespace BurnOutSharp.ProtectionType return $"Stardock Product Activation {Tools.Utilities.GetInternalVersion(pex)}"; // TODO: Check for CVP* instead? - bool containsCheck = pex.ExportNameTable?.Any(s => s.StartsWith("CVPInitializeClient")) ?? false; + bool containsCheck = pex.ExportNameTable?.Any(s => s?.StartsWith("CVPInitializeClient") ?? false) ?? false; bool containsCheck2 = false; // Get the .rdata section strings, if they exist