Do nothing if no source tree can be created

This commit is contained in:
Magne Sjaastad 2014-08-01 12:07:26 +02:00
parent b2f80c7ef9
commit 86b74e383e

View File

@ -392,6 +392,7 @@ void UiTreeModelPdm::updateUiSubTree(PdmObject* pdmRoot)
// Build the new "Correct" Tree
PdmUiTreeItem* tempUpdatedPdmTree = UiTreeItemBuilderPdm::buildViewItems(NULL, -1, pdmRoot);
if (!tempUpdatedPdmTree) return;
// Find the corresponding entry for "root" in the existing Ui tree