Capture newExtNumber as final for lambda capture in MemberVoipConfigController

FixVOIPService
Shipped
April 27, 2026 at 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?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing