Darkseal / DownPicker

A lightweight DropDownList / ComboBox for iOS, written in Objective-C
MIT License
202 stars 93 forks source link

Prevents a crasher if 0 length array passed into init method #4

Closed jamesvandyne closed 9 years ago

jamesvandyne commented 9 years ago

Ran into an issue where I passed an empty array into Downpicker and attempting to select it crashed the app. This fixes that by prevent selection if we don't have any items in our dataArray.