forked from GitHub/gf-core
guard for missing linearization
This commit is contained in:
@@ -70,6 +70,10 @@ Concr_linearize(ConcrObject* self, PyObject *args)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (text == NULL) {
|
||||||
|
Py_RETURN_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
PyObject* pystr = PyUnicode_FromStringAndSize(text->text, text->size);
|
PyObject* pystr = PyUnicode_FromStringAndSize(text->text, text->size);
|
||||||
|
|
||||||
free(text);
|
free(text);
|
||||||
|
|||||||
Reference in New Issue
Block a user