X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/be71e3c8cfed085e32b2f56425bc35e0a80f7647..406aa97b03d3f732c280b04e3f6c12cfc66e338f:/glib/gobject.lisp?ds=sidebyside diff --git a/glib/gobject.lisp b/glib/gobject.lisp index bfde9d1..68ee82c 100644 --- a/glib/gobject.lisp +++ b/glib/gobject.lisp @@ -586,6 +586,10 @@ (defun expand-gobject-type (type forward-p options &optional (metaclass 'gobject (let ((supers (cons (supertype type) (implements type))) (class (type-from-number type)) (slots (getf options :slots))) + (when (member nil supers) + (error "Got NIL as a supertype for ~A (full list: ~A).~%~ + This shouldn't happen - is the parent type correctly registered?" + (find-foreign-type-name type) supers)) `(defclass ,class ,supers ,(unless forward-p (slot-definitions class (query-object-class-properties type) slots))