mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
guard for missing linearization
This commit is contained in:
@@ -70,6 +70,10 @@ Concr_linearize(ConcrObject* self, PyObject *args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (text == NULL) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyObject* pystr = PyUnicode_FromStringAndSize(text->text, text->size);
|
||||
|
||||
free(text);
|
||||
|
||||
Reference in New Issue
Block a user