diff --git a/VERSION b/VERSION index 5409a56..d20953c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.161 +1.5.162 diff --git a/base/netgen.c b/base/netgen.c index f2e3830..ffb9c38 100644 --- a/base/netgen.c +++ b/base/netgen.c @@ -3584,8 +3584,8 @@ int CombineSeries(char *model, int file) /* Excise the 2nd instance. instlist[i][1] remains as the */ /* only pointer to it. */ - for (obp = instlist[i][0]; obp->next->type > FIRSTPIN || - obp->next->type == PROPERTY; obp = obp->next); + for (obp = instlist[i][0]; obp->next && (obp->next->type > FIRSTPIN || + obp->next->type == PROPERTY); obp = obp->next); for (ob2 = obp; ob2 && ob2->next != instlist[i][1]; ob2 = ob2->next); /* Device may have been moved by the above code. If so, look for */