Check widget existence when top revealer finishes reveal

Prevent errors when app was closed during top revealer animation.
This commit is contained in:
Rafał Dzięgiel
2021-02-24 12:40:28 +01:00
parent 632fcd34cc
commit af6a5ea1b9

View File

@@ -194,6 +194,7 @@ class ClapperRevealerTop extends CustomRevealer
if(this.child_revealed) { if(this.child_revealed) {
const clapperWidget = this.root.child; const clapperWidget = this.root.child;
if(!clapperWidget) return;
clapperWidget._setHideControlsTimeout(); clapperWidget._setHideControlsTimeout();
} }