From 48a61219f7efb549c68138cb014399651a814040 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 14 Jun 2017 12:42:38 +0200 Subject: [PATCH] Fix #228 --- src/ifcparse/IfcParse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 8f20eb2165..82d8c1b973 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -1179,7 +1179,7 @@ bool IfcFile::Init(IfcParse::IfcSpfStream* s) { entity_type = IfcSchema::Type::FromString(TokenFunc::asStringRef(token_stream[2])); } catch (const IfcException& ex) { Logger::Message(Logger::LOG_ERROR, ex.what()); - continue; + goto advance; } data = new IfcEntityInstanceData(entity_type, this, current_id, token_stream[2].startPos); @@ -1235,6 +1235,7 @@ bool IfcFile::Init(IfcParse::IfcSpfStream* s) { register_inverse(current_id, token_stream[0]); } + advance: Token next_token; try { next_token = tokens->Next();