princ3od / MaterialSurface

Google's Material Design UI library for Winform C# ./

Home Page:https://www.nuget.org/packages/MaterialSurface/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version 1.0.0 on NuGet has quite critical bug with MaterialTextfield. Please use only version 1.1.0!

princ3od opened this issue · comments

commented

Application possibly crashs if parent Form of MaterialTextfiield closed before Textfield finishs its animation.
When Form closed, all controls in it which includes MaterialTextfield had disposed. But the Textfield's animator (Timer) may not know Textfield has disposed and still keep on finishing the animation by accessing properties of Textfield which is Null.
This causes "NullReferenceException: Object reference not set to an instance of an object." and may lead to app crash.
I simply solved this problem by checking null inside animator loop before processing animation.