Unverified Commit dc03398b authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Avoid NPE in InkDecoration dispose (#15473)

Avoids a null pointer exception if dispose() is called on an
already-disposed InkDecoration.
parent e23a6586
......@@ -233,7 +233,7 @@ class _InkState extends State<Ink> {
@override
void deactivate() {
_ink.dispose();
_ink?.dispose();
assert(_ink == null);
super.deactivate();
}
......
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