Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 1b3f54d

Browse files
authored
Ensure mWidgetManager isn't null in UIWidget.setVisible() (#3459)
Fixes #3457
1 parent 57a0b54 commit 1b3f54d

File tree

1 file changed

+3
-1
lines changed
  • app/src/common/shared/org/mozilla/vrbrowser/ui/widgets

1 file changed

+3
-1
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/UIWidget.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,9 @@ public void setVisible(boolean aVisible) {
382382
return;
383383
}
384384
mWidgetPlacement.visible = aVisible;
385-
mWidgetManager.updateWidget(this);
385+
if (mWidgetManager != null) {
386+
mWidgetManager.updateWidget(this);
387+
}
386388
if (!aVisible) {
387389
clearFocus();
388390
}

0 commit comments

Comments
 (0)