Fix a table-related crash.

This commit is contained in:
Michael Griebling
2023-02-27 09:00:14 -05:00
parent d05123066c
commit d51628fa20

View File

@@ -695,8 +695,9 @@ public struct MTMathListBuilder {
return list
} else {
// Create a new table with the current list and a default env
let table = self.buildTable(env: nil, firstList:list, isRow:true)
return MTMathList(atom: table!)
if let table = self.buildTable(env: nil, firstList:list, isRow:true) {
return MTMathList(atom: table)
}
}
} else if command == "end" {
if currentEnv == nil {