evtprint.c: no node data: error message instead of seg fault
This commit is contained in:
parent
c0b5a78097
commit
207adefcda
|
|
@ -158,7 +158,12 @@ void EVTprint(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
udn_index[i] = node_table[node_index[i]]->udn_index;
|
udn_index[i] = node_table[node_index[i]]->udn_index;
|
||||||
node_data[i] = ckt->evt->data.node->head[node_index[i]];
|
if (ckt->evt->data.node)
|
||||||
|
node_data[i] = ckt->evt->data.node->head[node_index[i]];
|
||||||
|
else {
|
||||||
|
printf("ERROR - No node data: simulation not yet run?\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
node_value[i] = "";
|
node_value[i] = "";
|
||||||
w = w->wl_next;
|
w = w->wl_next;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue