From 168c770716a0911e538f1e6a83705c50e3fd551b Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 16 Mar 2020 02:17:08 +0800 Subject: [PATCH] Assert return value --- code/nel/src/ligo/primitive.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/nel/src/ligo/primitive.cpp b/code/nel/src/ligo/primitive.cpp index 807894be2..d43d4cde1 100644 --- a/code/nel/src/ligo/primitive.cpp +++ b/code/nel/src/ligo/primitive.cpp @@ -1255,6 +1255,7 @@ const IPrimitive *IPrimitive::getPrimitive (const std::string &absoluteOrRelativ for (childIndex=0;childIndexgetNumChildren();childIndex++) { cursor->getChild(child,childIndex); + nlassert(child); string name; if ( child->getPropertyByName("class", name) && toUpper(name)==childName )