KamoCRM

Capture newExtNumber as final for lambda capture in MemberVoipConfigController

FixVOIPService
Shipped
27 ஏப்ரல், 2026 அன்று 4:25 AM UTC
Author
Kamo
Commit
75674ad

newExtNumber is conditionally reassigned inside the if (isVoipEnabled && ...) block, which makes it not effectively final. The TeamMember sync block reads it from inside an Optional.ifPresent() lambda, which the compiler rejects. Bind a final copy before the lambda to satisfy the language rule without changing behavior.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing