mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Fix segfault when a parser error occurred before any parsed CSL plane
This commit is contained in:
@@ -713,7 +713,7 @@ namespace BlackMisc
|
||||
bool result = it.value()(tokens, package, package.path, lineNum);
|
||||
if (!result)
|
||||
{
|
||||
package.planes.back().hasErrors = true;
|
||||
if (! package.planes.empty()) { package.planes.back().hasErrors = true; }
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user