Fixed segfault for widgets without options
This commit is contained in:
committed by
Raphael Coeffic
parent
a01a22c96f
commit
4f0ca997a8
@@ -44,8 +44,7 @@ WidgetSettings::WidgetSettings(Window * parent, Widget * widget) :
|
||||
|
||||
uint8_t optIdx = 0;
|
||||
auto optPtr = widget->getOptions();
|
||||
|
||||
while (optPtr->name != nullptr) {
|
||||
while (optPtr && optPtr->name != nullptr) {
|
||||
|
||||
auto option = *optPtr;
|
||||
new StaticText(form, grid.getLabelSlot(), option.name);
|
||||
|
||||
Reference in New Issue
Block a user