mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Avoid NPE in InkDecoration dispose (#15473)
Avoids a null pointer exception if dispose() is called on an already-disposed InkDecoration.
This commit is contained in:
parent
e23a658685
commit
dc03398bc3
@ -233,7 +233,7 @@ class _InkState extends State<Ink> {
|
||||
|
||||
@override
|
||||
void deactivate() {
|
||||
_ink.dispose();
|
||||
_ink?.dispose();
|
||||
assert(_ink == null);
|
||||
super.deactivate();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user