Skip to content

Commit

Permalink
Analyser: test against nullptr.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Nov 9, 2024
1 parent 76b4b5b commit 9499948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ void Analyser::AnalyserImpl::analyseNode(const XmlNodePtr &node,
astRightChild = tempAst;
tempAst = AnalyserEquationAst::create();

if (astRightChild) {
if (astRightChild != nullptr) {
if (i == childCount - 2) {
astRightChild->swapLeftAndRightChildren();
tempAst = astRightChild;
Expand Down

0 comments on commit 9499948

Please sign in to comment.