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)); }