don't crash the chapter when nodes are corrupted

pull/5938/head
Thibault Duplessis 2020-01-18 18:16:24 -06:00
parent 2e15935170
commit 5510460d69
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ object BSONHandlers {
case arr: BSONArray =>
Try {
Node.Children(
arr.values.view.map(v => NodeBSONHandler.readTry(v).get).toVector
arr.values.view.flatMap(NodeBSONHandler.readOpt).toVector
)
}
},