ELF: Fix crash when LoadOptions is null

This commit is contained in:
Katy Coe
2021-01-14 00:37:21 +01:00
parent c1f801e2f9
commit 03694f15bf

View File

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