Workaround some Heisenbug
authorSteven Barth <steven@midlink.org>
Thu, 6 Nov 2008 18:32:07 +0000 (18:32 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 6 Nov 2008 18:32:07 +0000 (18:32 +0000)
libs/cbi/luasrc/cbi.lua

index db360cbbd0ac9b99845eb0013768349371e17a95..b37e2134964d19f50dbe8fc1b7b507aba194d243 100644 (file)
@@ -1197,7 +1197,7 @@ function AbstractValue.parse(self, section)
                                --luci.util.append(self.map.events, self.events)
                        end
                elseif cvalue ~= fvalue then
-                       self:write(section, fvalue)
+                       self:write(section, fvalue or "")
                        if self.error then
                                self.error[section] = "missing"
                        else