diff --git a/erpcgen/src/CGenerator.cpp b/erpcgen/src/CGenerator.cpp index 16b86311..6404cecd 100644 --- a/erpcgen/src/CGenerator.cpp +++ b/erpcgen/src/CGenerator.cpp @@ -305,8 +305,8 @@ DataType *CGenerator::findChildDataType(set &dataTypes, DataType *da { // The only child node of a list node is the element type. ListType *listType = dynamic_cast(dataType); - DataType *trueContainerDataType = listType->getTrueContainerDataType(); assert(listType); + DataType *trueContainerDataType = listType->getTrueContainerDataType(); DataType *elementType = findChildDataType(dataTypes, listType->getElementType()); listType->setElementType(elementType);