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 {
|
do {
|
||||||
newWorkspace++;
|
newWorkspace++;
|
||||||
workspaceNode = getModel()->getRoot()->findWorkspaceByName(std::to_string(newWorkspace));
|
workspaceNode = getModel()->getRoot()->findWorkspaceByName(std::to_string(newWorkspace));
|
||||||
} while (workspaceNode != nullptr && workspaceNode->childCount() != 0
|
} while (workspaceNode != nullptr
|
||||||
|| (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput()));
|
&& (workspaceNode->childCount() != 0
|
||||||
|
|| (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput())));
|
||||||
|
|
||||||
return std::to_string(newWorkspace);
|
return std::to_string(newWorkspace);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue