From ab1a1ab6f652b2a39021e4bd1dc0cc39cd5c518c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 30 Oct 2023 13:37:31 +0100 Subject: [PATCH] v0.0.293 fix NPE --- exerr/builder.go | 2 +- goextVersion.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exerr/builder.go b/exerr/builder.go index 9b47ba6..2d60127 100644 --- a/exerr/builder.go +++ b/exerr/builder.go @@ -275,7 +275,7 @@ func (b *Builder) Any(key string, val any) *Builder { } func (b *Builder) Stringer(key string, val fmt.Stringer) *Builder { - if val == nil { + if langext.IsNil(val) { return b.addMeta(key, MDTString, "(!nil)") } else { return b.addMeta(key, MDTString, val.String()) diff --git a/goextVersion.go b/goextVersion.go index d4414f7..a134df4 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.292" +const GoextVersion = "0.0.293" -const GoextVersionTimestamp = "2023-10-30T10:14:38+0100" +const GoextVersionTimestamp = "2023-10-30T13:37:31+0100"