Merge pull request #234 from avoroshilov/fix-crash-conversion

Fix a crash in Worker c-tor when converting certain JSON files
This commit is contained in:
Bartosz Taudul 2021-06-19 12:01:27 +02:00 committed by GitHub
commit 7fbf796ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,6 +371,8 @@ Worker::Worker( const char* name, const char* program, const std::vector<ImportE
else else
{ {
auto td = NoticeThread( v.tid ); auto td = NoticeThread( v.tid );
if (td->zoneIdStack.empty())
continue;
td->zoneIdStack.pop_back(); td->zoneIdStack.pop_back();
auto& stack = td->stack; auto& stack = td->stack;
auto zone = stack.back_and_pop(); auto zone = stack.back_and_pop();