Jemt / Fit.UI

Fit.UI is a JavaScript based UI framework built on Object Oriented principles
http://fitui.org
GNU Lesser General Public License v3.0
19 stars 7 forks source link

DropDown: Opening dropdown might cause an error if no picker is assigned #192

Closed Jemt closed 1 year ago

Jemt commented 1 year ago

See screenshot below. If no picker is assigned, but a value is set, then GetPicker() returns null and causes an error when the dropdown control is opened. We should always make sure to check for a return value of null when GetPicker() is called.

image

Jemt commented 1 year ago

Fixed. I have made sure to check for other similar bugs, but this was the only place where the result of GetPicker() was used without checking for null before using it.