[nostalgia/studio] Fix access of null ptr in OxFSTreeView
This commit is contained in:
parent
33775f59ff
commit
08da9d6a94
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user