Commit 8bfa207
committed
Fix TrendCheck creating Quality without a name
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 622afde commit 8bfa207
1 file changed
+3
-0
lines changed| 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