We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to filter an empty list, an "Division by zero" error (ArithmeticException) is thrown. The culprit seems to be https://github.com/FriedrichFroebel/cmanager/blob/master/src/main/java/cmanager/list/filter/FilterModel.java#L20, which leads to 0 cores if the list has size 0 and therefore the division fails. We should probably check if the list is empty beforehand and return the original list if it is empty.
ArithmeticException
Steps to reproduce:
The text was updated successfully, but these errors were encountered:
6d4d1c2
No branches or pull requests
When trying to filter an empty list, an "Division by zero" error (
ArithmeticException
) is thrown. The culprit seems to be https://github.com/FriedrichFroebel/cmanager/blob/master/src/main/java/cmanager/list/filter/FilterModel.java#L20, which leads to 0 cores if the list has size 0 and therefore the division fails. We should probably check if the list is empty beforehand and return the original list if it is empty.Steps to reproduce:
The text was updated successfully, but these errors were encountered: