[nostalgia/studio] Fix access of null ptr in OxFSTreeView

This commit is contained in:
Gary Talent 2021-06-04 23:38:25 -05:00
parent 33775f59ff
commit 08da9d6a94

View File

@ -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<const char*>(m_path.toUtf8())));
QVector<QString> ls;