Commit c6ae3303 authored by Andrew Wilson's avatar Andrew Wilson

Fix npe.

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