fixed nil panic for empty filter message

This commit is contained in:
2025-01-23 14:18:44 -01:06
parent b930a885f2
commit 8894e5f16e
2 changed files with 5 additions and 1 deletions

View File

@@ -55,6 +55,10 @@ func (f *T) Marshal(dst by) (b by) {
func (f *T) Unmarshal(b by) (r by, err er) {
r = b[:]
if len(r) < 1 {
err = errorf.E("cannot unmarshal nothing")
return
}
for len(r) > 0 {
switch r[0] {
case '[':

View File

@@ -1 +1 @@
v1.7.0
v1.7.1