diff --git a/jsonapi.go b/jsonapi.go index 0f8aa2f..04b4a44 100644 --- a/jsonapi.go +++ b/jsonapi.go @@ -109,6 +109,10 @@ func checkLinkValue(linkValue any) (bool, *TypeError) { } func (l *Link) check() error { + if l == nil { + return nil + } + selfIsEmpty, err := checkLinkValue(l.Self) if err != nil { return err