fix NPE
This commit is contained in:
parent
b91314fad6
commit
1c40627570
1 changed files with 3 additions and 2 deletions
|
@ -63,8 +63,9 @@ protected:
|
|||
do {
|
||||
newWorkspace++;
|
||||
workspaceNode = getModel()->getRoot()->findWorkspaceByName(std::to_string(newWorkspace));
|
||||
} while (workspaceNode != nullptr && workspaceNode->childCount() != 0
|
||||
|| (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput()));
|
||||
} while (workspaceNode != nullptr
|
||||
&& (workspaceNode->childCount() != 0
|
||||
|| (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput())));
|
||||
|
||||
return std::to_string(newWorkspace);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue