Handle missing property to avoid runtime error
This commit is contained in:
parent
b6e90b6976
commit
b568229f4a
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ var showWeightDialog = func {
|
||||||
var wgts = [];
|
var wgts = [];
|
||||||
for(var i=0; i<size(wgts); i+=1) {
|
for(var i=0; i<size(wgts); i+=1) {
|
||||||
var w = wgts[i];
|
var w = wgts[i];
|
||||||
var wname = w.getNode("name", 1).getValue();
|
var wname = w.getNode("name", 1).getValue() or "";
|
||||||
var wprop = fdmdata.payload ~ "/weight[" ~ i ~ "]";
|
var wprop = fdmdata.payload ~ "/weight[" ~ i ~ "]";
|
||||||
|
|
||||||
var title = tcell(weightTable, "text", i+1, 0);
|
var title = tcell(weightTable, "text", i+1, 0);
|
||||||
|
|
Loading…
Reference in a new issue