From 08da9d6a9468df2fdeb28451d8fd1790a25d66dc Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 4 Jun 2021 23:38:25 -0500 Subject: [PATCH] [nostalgia/studio] Fix access of null ptr in OxFSTreeView --- src/nostalgia/studio/oxfstreeview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nostalgia/studio/oxfstreeview.cpp b/src/nostalgia/studio/oxfstreeview.cpp index 9f0ddf0b6..55b92b7aa 100644 --- a/src/nostalgia/studio/oxfstreeview.cpp +++ b/src/nostalgia/studio/oxfstreeview.cpp @@ -19,6 +19,9 @@ namespace nostalgia::studio { OxFSFile::OxFSFile(ox::FileSystem *fs, const QString &path, OxFSFile *parentItem) { m_path = path; m_parentItem = parentItem; + if (!fs) { + return; + } // find children oxRequireT(stat, fs->stat(static_cast(m_path.toUtf8()))); QVector ls;