Skip to content

Give the SyncedTabsAdapter.getItemViewType() when subject a non-null type - #4563

Open
rvandermeulen wants to merge 1 commit into
masterfrom
synced-tabs-when-null
Open

rvandermeulen wants to merge 1 commit into
masterfrom
synced-tabs-when-null

Conversation

@rvandermeulen

Copy link
Copy Markdown
Contributor

Kotlin 2.5 warns that the platform-typed getItem() result is unhandled when null, which -Werror turns into a build failure. Typing the subject as non-null fixes it without a !! (detekt's UnsafeCallOnNullableType) and builds cleanly on the current Kotlin 2.4.20.

…type.

Kotlin 2.5 warns that the platform-typed getItem() result is unhandled when null, which -Werror turns into a
build failure.
@rvandermeulen rvandermeulen added the needs landing Auto lands approved and green PRs. label Sep 23, 2026
@mergify

mergify Bot commented Sep 23, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs landing Auto lands approved and green PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant