Commit 9b8d9c9
authored
Fix crash on data products with lower than 10 count (#14)
In this change, we check whether the number of features
is not lower than the count. If it is lower, we got out
of bounds errors since it wanted to take a slice of
the feature that it didn't have.
Therefore we now set the count equal to the amount of
features if the count is higher.1 parent a1df635 commit 9b8d9c9
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
| |||
0 commit comments