Commit 9d7f6ec
authored
Fix TrendCheck creating Quality without a name (#2584)
A default Quality would be created when TrendCheck::beautify was trying to access a non-existent entry in mQualities map.
When using operator[] with a missing key, the object is added using the default constructor, so Quality(10, "") was being created.
This was causing crashes in QualityTask, which was relying on a non-empty Quality name to be there.1 parent bde6e1b commit 9d7f6ec
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
439 | 442 | | |
440 | 443 | | |
441 | 444 | | |
| |||
0 commit comments