Skip to content

Conversation

@eugenegff
Copy link

@eugenegff eugenegff commented Nov 18, 2025

Prevent NullPointerException when viewRef was nullified as part of SideSheetBehavior.onDetachedFromLayoutParams() and only then accessed by runAfterLayout lambda. Similar nearby checks outside of lambda are not enough, as all of them are executed immediately, and access in lambda is done later, after layout.

Fixes #4975

…s part of SideSheetBehavior.onDetachedFromLayoutParams() and only then accessed by runAfterLayout lambda
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.

[SideSheetBehavior] NullPointerException in setState > runAfterLayout

1 participant