Skip to content

Commit 0ea83fd

Browse files
committed
OcdFileExport: Skip unset subsymbols of combined symbol
Fixes #1123.
1 parent 16ceb01 commit 0ea83fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fileformats/ocd_file_export.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,6 +2244,9 @@ void OcdFileExport::exportGenericCombinedSymbol(OcdFile<Format>& file, const Com
22442244
for (int i = 0; i < combined_symbol->getNumParts(); ++i)
22452245
{
22462246
const Symbol* part = combined_symbol->getPart(i);
2247+
if (!part)
2248+
continue;
2249+
22472250
QByteArray ocd_data;
22482251
quint8 type = 0;
22492252
switch (part->getType())

0 commit comments

Comments
 (0)