material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[SideSheet] Prevent NullPointerException when viewRef was nullified and only then accessed by runAfterLayout lambda

Open eugenegff opened this issue 3 months ago • 0 comments

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

eugenegff avatar Nov 18 '25 15:11 eugenegff