From: Anton Luzgin Date: Fri, 28 Nov 2025 08:42:32 +0000 (+0400) Subject: luci-app-dockerman: fix unhandled nil on containers page X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=96f046d45b4ef69686a3cbac8cb68c4126064f36;p=project%2Fluci.git luci-app-dockerman: fix unhandled nil on containers page --- diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/containers.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/containers.lua index a48118ec0c..2a337a62a9 100644 --- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/containers.lua +++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/containers.lua @@ -77,7 +77,7 @@ function get_containers() for ii,iv in ipairs(images) do if iv.Id == v.ImageID then - data[index]["_image"] = iv.RepoTags and iv.RepoTags[1] or (iv.RepoDigests[1]:gsub("(.-)@.+", "%1") .. ":") + data[index]["_image"] = iv.RepoTags and iv.RepoTags[1] or ((iv.RepoDigests[1] or ""):gsub("(.-)@.+", "%1") .. ":") end end