Skip to content

Conversation

onuralpavci
Copy link
Contributor

Description

This MR addresses a potential crash in CVFloatingZoomView related to null pointer exceptions involving lastCenter and initialPoint during multi-touch interactions. Although I was unable to reproduce the crash locally, analysis of the crash logs and code indicates that a rapid change in finger count or an interrupted initialization sequence could result in these variables being null when accessed, leading to a crash.
To mitigate this, I have added null checks before performing operations on these variables in the relevant methods. This ensures that, even in rare edge cases, the app will not crash and the zoom view will continue to provide a seamless user experience. Since the zoom functionality already works smoothly for typical usage, this is a defensive fix to cover unexpected scenarios.

@onuralpavci onuralpavci merged commit 91cfc16 into master Jun 13, 2025
1 check passed
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.

2 participants