BAML Go Collector Panic (v0.216.0)
Getting a panic when using Collector with Go:
Decode: holder=&{NullValue:}
panic: reflect: call of reflect.Value.Interface on zero Value
How to reproduce:
collector, _ := baml.NewCollector("my-collector")
result, _ := baml.MyFunction(ctx, input, baml.WithCollector(collector))
// Panic happens during GC when finalizer runs
Root cause: In utils.go:184, when the destructor returns a NullValue, serde.Decode() returns a zero reflect.Value, then .Interface() panics.