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> { ...@@ -233,7 +233,7 @@ class _InkState extends State<Ink> {
@override @override
void deactivate() { void deactivate() {
_ink.dispose(); _ink?.dispose();
assert(_ink == null); assert(_ink == null);
super.deactivate(); 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