Commit Graph
2 Commits
Author SHA1 Message Date
dualfroz 457aca4500 fix: nil-pointer panic from custom type function
A DecodeCustomTypeFunc returning nil to mean "leave this pointer
field unset" panicked in reflect.Value.Set, since reflect.ValueOf(nil)
is the invalid zero Value. Guard against a nil return before Set.

This is the panic from #68/#69: the earlier fix routed pointer fields
through the generic Ptr recursion instead of guarding nil, which
discarded a custom function's own populated pointer result and had
to be reverted. Guarding val == nil directly fixes the panic without
touching the case that broke.
2026-09-06 00:44:40 +02:00
upstream 4a0a5220ce Upstream go-playground/form state of the touched files before 8baf0c3554 2026-09-04 08:15:15 +02:00