Skip to content

Commit

Permalink
Merge pull request flutter#868 from apwilson/npe
Browse files Browse the repository at this point in the history
Fix npe.
  • Loading branch information
apwilson committed Aug 26, 2015
2 parents 3a73fd6 + e2fdc2e commit 79e8967
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sky/packages/sky/lib/widgets/mimic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 79e8967

Please sign in to comment.