Commit c6ae3303 authored by Andrew Wilson's avatar Andrew Wilson

Fix npe.

parent b1229696
...@@ -98,8 +98,10 @@ class Mimic extends GlobalKeyWatcher { ...@@ -98,8 +98,10 @@ class Mimic extends GlobalKeyWatcher {
void _setMimicable(widget) { void _setMimicable(widget) {
if (_mimicable != widget) { if (_mimicable != widget) {
_stopMimic(); _stopMimic();
if (widget != null) {
widget.startMimic(); widget.startMimic();
} }
}
setState(() { setState(() {
_mimicable = widget; _mimicable = widget;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment