diff --git a/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp b/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp index 7c436b31f..3756f7225 100644 --- a/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp +++ b/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp @@ -1256,7 +1256,7 @@ SP CMasterAlgorithm::getNextCandidate(SP old) { } SP CMasterAlgorithm::getNextTarget(SP t, bool next, bool loop) { - if (t->floating()) + if (!t || t->floating()) return nullptr; const auto PNODE = getNodeFromTarget(t);