Prevent crash when no simulation has been run and

asking for plotting an event node
This commit is contained in:
Holger Vogt 2022-02-19 17:23:36 +01:00
parent f2ba4a93fb
commit 7130097710
1 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,12 @@ struct dvec *EVTfindvec(
/* Get the UDN type index */
udn_index = node_table[i]->udn_index;
if (!g_mif_info.ckt->evt->data.node) {
// fprintf(stderr, "Warning: No event data available! \n Simulation not yet run?\n");
tfree(name);
return(NULL);
}
/* Count the number of events */
head = g_mif_info.ckt->evt->data.node->head[i];