Skip to content

Commit

Permalink
CSV parse fix for blank strings
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownJoe796 committed Oct 28, 2024
1 parent 0c2a620 commit 650e0a2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ class StringDeferringDecoder(

if (
(descriptor.kind == StructureKind.CLASS && (
desc.kind == PrimitiveKind.STRING ||
!descriptor.isElementOptional(index) && desc.isNullable
!descriptor.isElementOptional(index) && (desc.kind == PrimitiveKind.STRING || desc.isNullable)
)) ||
map.keys.any {
it.startsWith(name) && (it.length == name.length || it[name.length] == '.')
}
) {
return index
} else {
println("NO")
}
if (isCollection) {
// if map does not contain key we look for, then indices in collection have ended
Expand Down

0 comments on commit 650e0a2

Please sign in to comment.