From 4ad426a5c56829ad20ff94217fd5c0a2f0b94704 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 17 Jul 2024 09:45:34 +0200 Subject: [PATCH] Update IfcParse.cpp #4998 --- src/ifcparse/IfcParse.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 48574b8049..88688cbf01 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -1147,10 +1147,11 @@ std::string IfcEntityInstanceData::toString(bool upper) const { ss << ","; } if (attributes_[i] == 0) { - if (type_->as_entity()->derived()[i]) + if (type_->as_entity() != nullptr && type_->as_entity()->derived()[i]) { ss << "*"; - else + } else { ss << "$"; + } } else { ss << attributes_[i]->toString(upper); }