MaterialDesignExtensions icon indicating copy to clipboard operation
MaterialDesignExtensions copied to clipboard

Fixed issue: #153: OversizedNumberSpinner Throws NullReferenceException.

Open whopacha opened this issue 4 years ago • 1 comments

Added Null checks for m_valueTextBox in LoadedHandler and UnloadedHandler.

whopacha avatar Jul 21 '21 06:07 whopacha

Using MaterialDesignExtensions 3.3.0 I was getting:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.

When using the OversizedNumberSpinner control inside a tab control (that isn't the first loaded tab) Adding null checks to the Load and Unload handlers in OversizedNumberSpinner.cs correct the issue.

Note: This is my first attempt at contributing to something on Github so I'm sorry if I didn't follow expected processes correctly or anything.

whopacha avatar Jul 21 '21 07:07 whopacha