diff --git a/src/core/ncch/ncch_container.cpp b/src/core/ncch/ncch_container.cpp index e2b4ecd..ccf9480 100644 --- a/src/core/ncch/ncch_container.cpp +++ b/src/core/ncch/ncch_container.cpp @@ -277,7 +277,7 @@ ResultStatus NCCHContainer::LoadSectionExeFS(const char* name, std::vector& if (result != ResultStatus::Success) return result; - if (!exefs_file->IsOpen()) + if (!exefs_file || !exefs_file->IsOpen()) return ResultStatus::Error; LOG_DEBUG(Service_FS, "{} sections:", kMaxSections);