add missing nil check to anonymous struct handling logic

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-04-18 18:31:51 -04:00
parent 95b6e3f1bf
commit a608ddd46d
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -586,7 +586,7 @@ func handleAnon(raw interface{}, rtype reflect.Type, rval reflect.Value) reflect
if reflect.TypeOf(fval) == reflect.TypeFor[string]() && typeField.Type == reflect.TypeFor[time.Time]() {
tt, _ := time.Parse(time.RFC3339, fval.(string))
valueField.Set(reflect.ValueOf(tt))
} else {
} else if fval != nil {
valueField.Set(reflect.ValueOf(fval))
}