diff --git a/fx/object.c b/fx/object.c index fd9cc25..a097702 100644 --- a/fx/object.c +++ b/fx/object.c @@ -23,7 +23,7 @@ FX_TYPE_DEFINITION_END(fx_object) fx_type_id fx_object_query_type(const struct _fx_object *obj) { - return &obj->obj_type->ty_id; + return obj ? &obj->obj_type->ty_id : NULL; } fx_result fx_object_instantiate(