1
0
Fork 0

Handle missing property to avoid runtime error

This commit is contained in:
Henning Stahlke 2017-01-23 17:54:15 +01:00
parent b6e90b6976
commit b568229f4a

View file

@ -1043,7 +1043,7 @@ var showWeightDialog = func {
var wgts = [];
for(var i=0; i<size(wgts); i+=1) {
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 title = tcell(weightTable, "text", i+1, 0);