Skip to content
New issue

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

Avoid division by zero #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IntMatrix
Copy link

There were discovered some crashes in the library.
NSArray<IBPCollectionCompositionalLayoutSolverResult *> *results = self.results;
There are no checks in case when results.count == 0 before division by zero. So, these checks fix those crashes.

@alphatroya
Copy link

I've faced this issue recently. I think this PR should be merged.

@andrewprocter
Copy link

Add another hat in the ring for merging this, also faced this issue recently.

@RGG-jayoung
Copy link

+1 for me as well. Can this be merged?

@alexandreraulin
Copy link

+1, that's possible to merge it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants