Skip to content

Commit

Permalink
App: fix crash on LinkBaseExtension::syncElementList()
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Jul 24, 2021
1 parent f63a5ea commit 26faef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App/Link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1580,8 +1580,8 @@ void LinkBaseExtension::syncElementList() {
{
element->LinkedObject.setValue(xlink->getValue(), xlink->getSubValues());
}
} else if(element->LinkedObject.getValue()!=link->getValue() ||
element->LinkedObject.getSubValues().size())
} else if(link && (element->LinkedObject.getValue()!=link->getValue()
|| element->LinkedObject.getSubValues().size()))
{
element->setLink(-1,link->getValue());
}
Expand Down

0 comments on commit 26faef0

Please sign in to comment.