Fix crashes on using depends

This commit is contained in:
Dheepak Krishnamurthy 2021-02-13 16:32:47 -07:00
parent 38e4341815
commit da22c85282
3 changed files with 8 additions and 5 deletions

View file

@ -218,7 +218,10 @@ impl TaskReportTable {
} else {
let mut dt = vec![];
for u in v {
dt.push(tasks.iter().find(|t| t.uuid() == u).unwrap().id().unwrap());
match tasks.iter().find(|t| t.uuid() == u) {
Some(t) => dt.push(t.id().unwrap()),
None => (),
}
}
join(dt.iter().map(|i| i.to_string()), " ")
}