From 03694f15bf4de020b3b603ca7d9d926c0e678790 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Thu, 14 Jan 2021 00:37:21 +0100 Subject: [PATCH] ELF: Fix crash when LoadOptions is null --- Il2CppInspector.Common/FileFormatStreams/ElfReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/FileFormatStreams/ElfReader.cs b/Il2CppInspector.Common/FileFormatStreams/ElfReader.cs index 305dd9b..5da9a75 100644 --- a/Il2CppInspector.Common/FileFormatStreams/ElfReader.cs +++ b/Il2CppInspector.Common/FileFormatStreams/ElfReader.cs @@ -209,7 +209,7 @@ namespace Il2CppInspector // Rebase if requested (whether dumped or not) and treat it as a memory image, // disabling processing of relocations, symbols and decryption - if (LoadOptions?.ImageBase != 0) { + if (LoadOptions != null && LoadOptions.ImageBase != 0) { isMemoryImage = true; rebase(conv.FromULong(LoadOptions.ImageBase)); }