You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Over in Telegraf, we had a report in influxdata/telegraf#15200 of a panic with gosmi. Specifically, it looks like a nil value causes the panic when trying to type assert.
Hi,
Over in Telegraf, we had a report in influxdata/telegraf#15200 of a panic with gosmi. Specifically, it looks like a nil value causes the panic when trying to type assert.
Code
https://github.com/sleepinggenius2/gosmi/blob/v0.4.4/models/format_bits.go#L31
Panic
Expected Behavior
Ideally, a user should not see a panic if at all possible. A type assertion should safely check the value to avoid the runtime panic.
The text was updated successfully, but these errors were encountered: