Skip to content

Avoid division by zero - #136

Open
IntMatrix wants to merge 1 commit into
kishikawakatsumi:masterfrom
IntMatrix:ios12-fixes
Open

Avoid division by zero#136
IntMatrix wants to merge 1 commit into
kishikawakatsumi:masterfrom
IntMatrix:ios12-fixes

Conversation

@IntMatrix

Copy link
Copy Markdown

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
Copy Markdown

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

@andrewprocter

Copy link
Copy Markdown

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

@RGG-jayoung

Copy link
Copy Markdown

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

@alexandreraulin

Copy link
Copy Markdown

+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