Dialogues with empty list can crash OpenCPN
Closed this issue · 0 comments
antipole2 commented
Some dialogue elements take a list e.g radio button takes a list of buttons.
If the list is empty, nothing is displayed (i.e. no radio button displayed).
But the entry exists in the returned dialogue structure and the plugin tries to read it -> crash.
Fix to be: check for empty lists and throw an error.
Implement for all lists.