Commit c6ae3303 authored by Andrew Wilson's avatar Andrew Wilson

Fix npe.

parent b1229696
...@@ -98,7 +98,9 @@ class Mimic extends GlobalKeyWatcher { ...@@ -98,7 +98,9 @@ class Mimic extends GlobalKeyWatcher {
void _setMimicable(widget) { void _setMimicable(widget) {
if (_mimicable != widget) { if (_mimicable != widget) {
_stopMimic(); _stopMimic();
widget.startMimic(); if (widget != null) {
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