Skip to content

Commit f84916c

Browse files
authored
Call assert for listType before usage (#406)
1 parent 7385518 commit f84916c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

erpcgen/src/CGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ DataType *CGenerator::findChildDataType(set<DataType *> &dataTypes, DataType *da
305305
{
306306
// The only child node of a list node is the element type.
307307
ListType *listType = dynamic_cast<ListType *>(dataType);
308-
DataType *trueContainerDataType = listType->getTrueContainerDataType();
309308
assert(listType);
309+
DataType *trueContainerDataType = listType->getTrueContainerDataType();
310310
DataType *elementType = findChildDataType(dataTypes, listType->getElementType());
311311
listType->setElementType(elementType);
312312

0 commit comments

Comments
 (0)