mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk: Added missign guard against nullptr
This commit is contained in:
@@ -69,7 +69,7 @@ PdmUiTreeViewQModel::PdmUiTreeViewQModel(PdmUiTreeViewEditor* treeViewEditor)
|
||||
void PdmUiTreeViewQModel::setPdmItemRoot(PdmUiItem* rootItem)
|
||||
{
|
||||
// Check if we are already watching this root
|
||||
if (m_treeOrderingRoot && m_treeOrderingRoot->activeItem() == rootItem)
|
||||
if (rootItem && m_treeOrderingRoot && m_treeOrderingRoot->activeItem() == rootItem)
|
||||
{
|
||||
this->updateSubTree(rootItem);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user