diff --git a/VERSION b/VERSION index faca1f6..b6bd287 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.275 +1.5.276 diff --git a/base/netgen.c b/base/netgen.c index 61bf397..32b0177 100644 --- a/base/netgen.c +++ b/base/netgen.c @@ -3094,7 +3094,7 @@ void add_balancing_close(struct objlist *ob1, struct objlist *ob2) for (nob = ob1->next; nob && nob->type != FIRSTPIN; nob = nob->next) if (nob->type == PROPERTY) break; - if (nob->type != PROPERTY) return; // shouldn't happen + if (nob == NULL || nob->type != PROPERTY) return; // shouldn't happen opentags = 0; for (; nob->next && nob->next->type == PROPERTY; nob = nob->next) { @@ -3644,7 +3644,7 @@ int CombineSeries(char *model, int file) nob->type = PROPERTY; nob->name = strsave("properties"); nob->node = -2; /* Don't report as disconnected node */ - nob->model.class = (obp->model.class == NULL) ? NULL : + nob->model.class = (obp == NULL || obp->model.class == NULL) ? NULL : strsave(obp->model.class); nob->instance.props = NewPropValue(2);