Fix NPE with overflow expanded view

I made it so that the overflow expanded view could return null and
didn't protect this access of it. Fix is to check if the view is
null before doing something to it.

Test: treehugger
Bug: 219491953
Change-Id: I380584223ad56c754cf59c63e3eb2131c3275154
This commit is contained in:
Mady Mellor
2022-02-16 14:06:52 -08:00
parent f240e0b7c3
commit 87ac02f5fe

View File

@@ -1237,7 +1237,7 @@ public class BubbleStackView extends FrameLayout
b.getExpandedView().updateFontSize();
}
}
if (mBubbleOverflow != null) {
if (mBubbleOverflow != null && mBubbleOverflow.getExpandedView() != null) {
mBubbleOverflow.getExpandedView().updateFontSize();
}
}