From 78ec6a1e8650206dc9bb723a87144fc5bab50827 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 8 Sep 2026 15:52:49 +0100 Subject: [PATCH] This is not pretty --- constants.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/constants.go b/constants.go index 0edff60..bd74a83 100644 --- a/constants.go +++ b/constants.go @@ -280,7 +280,12 @@ func (i *IBT) SessionStateInvalid() bool { return true } - bitfield, err := strconv.ParseInt(val.Value.(string), 0, 64) + value, ok := val.Value.(string) + if !ok { + return true + } + + bitfield, err := strconv.ParseInt(value, 0, 64) if err != nil { return true }