if (node->links().contains(Node::PreviousLink)) {
linkPair = node->links()[Node::PreviousLink];
linkNode = findNodeForTarget(linkPair.first, node, marker);
- if (linkNode->type() == Node::Fake) {
+ if (linkNode && linkNode->type() == Node::Fake) {
const FakeNode *fakeNode = static_cast<const FakeNode*>(linkNode);
linkPair.second = fakeNode->title();
}
if (node->links().contains(Node::NextLink)) {
linkPair = node->links()[Node::NextLink];
linkNode = findNodeForTarget(linkPair.first, node, marker);
- if (linkNode->type() == Node::Fake) {
+ if (linkNode && linkNode->type() == Node::Fake) {
const FakeNode *fakeNode = static_cast<const FakeNode*>(linkNode);
linkPair.second = fakeNode->title();
}
if (node->links().contains(Node::StartLink)) {
linkPair = node->links()[Node::StartLink];
linkNode = findNodeForTarget(linkPair.first, node, marker);
- if (linkNode->type() == Node::Fake) {
+ if (linkNode && linkNode->type() == Node::Fake) {
const FakeNode *fakeNode = static_cast<const FakeNode*>(linkNode);
linkPair.second = fakeNode->title();
}