diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-03-24 09:33:32 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-03-24 11:16:12 +0000 |
commit | 3492da12468f10a5ec83a102b7aba9043b46f4dc (patch) | |
tree | 751e4a19e0741d67b9c350446bc9f8c4508fc520 /src/plugins/resourceeditor | |
parent | 1074d974324c9461d6b019ac387681019d6915dd (diff) |
ResourceEditor: Prevent possible nullptr access
Change-Id: Iad958d26272f471530a8494bee0e326ce9835aa9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorplugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp index 0ef8e5cb50..474092d350 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -220,6 +220,7 @@ void ResourceEditorPlugin::extensionsInitialized() for (FileNode *file : toReplace) { FolderNode *const pn = file->parentFolderNode(); + QTC_ASSERT(pn, continue); const Utils::FileName path = file->filePath(); pn->replaceSubtree(file, new ResourceTopLevelNode(path, QString(), pn)); } |