fix(color): LVGL file picker may crash if 'get' function is not set in Lua (#6107)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
@@ -330,7 +330,7 @@ void LvglWidgetObjectBase::pcallSetIntVal(lua_State *L, int setFuncRef, int val)
|
||||
|
||||
const char* LvglWidgetObjectBase::pcallGetStringVal(lua_State *L, int getFuncRef)
|
||||
{
|
||||
const char* val = nullptr;
|
||||
const char* val = "";
|
||||
if (getFuncRef != LUA_REFNIL) {
|
||||
auto save = luaScriptManager;
|
||||
luaScriptManager = lvglManager;
|
||||
|
||||
Reference in New Issue
Block a user