mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Bug 1089668 - Avoid NPE on parent when tab strip item is pressed (r=mcomella)
This commit is contained in:
parent
4f74b0fee4
commit
2b69b6e2c6
@ -188,7 +188,9 @@ public class TabStripItemView extends ThemedLinearLayout
|
||||
// The surrounding tab strip dividers need to be hidden
|
||||
// when a tab item enters pressed state.
|
||||
View parent = (View) getParent();
|
||||
parent.invalidate();
|
||||
if (parent != null) {
|
||||
parent.invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
void updateFromTab(Tab tab) {
|
||||
|
Loading…
Reference in New Issue
Block a user