Skip to content

Commit

Permalink
fix(#41): id_taxa_list may contains negative values (e.g. -1 which ha…
Browse files Browse the repository at this point in the history
…s a semantic meaning)...
  • Loading branch information
sgrimault committed May 19, 2024
1 parent 3581f68 commit ae3dd3f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ class DatasetJsonReader {
"active" -> active = reader.nextBoolean()
"meta_create_date" -> createdAt = toDate(reader.nextString())
"meta_update_date" -> updatedAt = toDate(reader.nextStringOrNull())
"id_taxa_list" -> taxaListId = reader
.nextLongOrNull()
?.coerceAtLeast(0L)
"id_taxa_list" -> taxaListId = reader.nextLongOrNull()

else -> reader.skipValue()
}
Expand Down

0 comments on commit ae3dd3f

Please sign in to comment.