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:
philmoz
2025-04-19 12:33:06 +10:00
committed by GitHub
co-authored by philmoz
parent 7ddba250a4
commit 8f6f4cc07c
+1 -1
View File
@@ -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;