diff --git a/Core/FileSystems/ISOFileSystem.cpp b/Core/FileSystems/ISOFileSystem.cpp index 20994af8b4..ed5d5de936 100644 --- a/Core/FileSystems/ISOFileSystem.cpp +++ b/Core/FileSystems/ISOFileSystem.cpp @@ -335,6 +335,11 @@ const ISOFileSystem::TreeEntry *ISOFileSystem::GetFromPath(std::string_view path if (pathLength <= pathIndex) return treeroot; + if (!treeroot) { + // The constructor gave up - no ISO9660 volume descriptor, or it wouldn't read. + return nullptr; + } + TreeEntry *entry = treeroot; while (true) { if (!entry->valid) {