[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) {
|
OxFSFile::OxFSFile(ox::FileSystem *fs, const QString &path, OxFSFile *parentItem) {
|
||||||
m_path = path;
|
m_path = path;
|
||||||
m_parentItem = parentItem;
|
m_parentItem = parentItem;
|
||||||
|
if (!fs) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// find children
|
// find children
|
||||||
oxRequireT(stat, fs->stat(static_cast<const char*>(m_path.toUtf8())));
|
oxRequireT(stat, fs->stat(static_cast<const char*>(m_path.toUtf8())));
|
||||||
QVector<QString> ls;
|
QVector<QString> ls;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user