diff --git a/struct_utils/named_values_to_struct.go b/struct_utils/named_values_to_struct.go index acea897ba16eec68c415fac84fd2664196060560..68d8536b2fe451b87973cfa9166453c38131e939 100644 --- a/struct_utils/named_values_to_struct.go +++ b/struct_utils/named_values_to_struct.go @@ -140,6 +140,9 @@ func NamedValuesFromURL(params map[string]string, multiValueParams map[string][] splitValues := []string{} for _, value := range values { //split only if valid CSV between [...] + if value == "" { + continue + } if value[0] == '[' && value[len(value)-1] == ']' { csvReader := csv.NewReader(strings.NewReader(value[1 : len(value)-1])) csvValues, csvErr := csvReader.Read() //this automatically removes quotes around some/all CSV inside the [...]