Skip to content

Bug 1992617 - Kotlin: For lateinit metrics, check that the metric was instantiated before recording on it#3309

Merged
badboy merged 1 commit intomainfrom
push-nosprmmpsxxz
Nov 6, 2025
Merged

Bug 1992617 - Kotlin: For lateinit metrics, check that the metric was instantiated before recording on it#3309
badboy merged 1 commit intomainfrom
push-nosprmmpsxxz

Conversation

@badboy
Copy link
Copy Markdown
Member

@badboy badboy commented Nov 6, 2025

This should not happen, but apparently it does in Fenix. I have no idea why or how to prevent it.
But we can mitigate it.
Downside: If the instance is not instantiated by the time set actually runs we don't record any data. But then again before we just crashed, which also didn't record data.

@badboy badboy requested a review from a team as a code owner November 6, 2025 09:43
@badboy badboy requested review from travis79 and removed request for a team November 6, 2025 09:43
@badboy badboy force-pushed the push-nosprmmpsxxz branch from e857ee0 to 3c706f8 Compare November 6, 2025 09:53
…before recording on it

This _should not_ happen, but apparently it does in Fenix. I have no
idea why or how to prevent it.
But we can mitigate it.
Downside: If the instance is not instantiated by the time `set` actually
runs we don't record any data. But then again before we just crashed,
which also didn't record data.
@badboy badboy force-pushed the push-nosprmmpsxxz branch from 3c706f8 to 12e48c8 Compare November 6, 2025 09:59
@badboy badboy enabled auto-merge (rebase) November 6, 2025 10:47
@badboy badboy disabled auto-merge November 6, 2025 10:47
@badboy badboy merged commit 97e7371 into main Nov 6, 2025
27 of 28 checks passed
@badboy badboy deleted the push-nosprmmpsxxz branch November 6, 2025 10:47
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.

1 participant