Skip to content

Commit

Permalink
Fix a crasher with bad data
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed May 29, 2024
1 parent 4a377ac commit 903ab1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions component.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ def getComponentMasters(

for name in ca.coordinateHave:
coord = coords.get(name, 0)
if name not in axesMap:
continue # This happens with bad input data
i = fvarTags.index(axesMap[name])
axisIndexMasters.append(i)
axisValueMasters.append(fl2fi(coord, 14))
Expand Down

0 comments on commit 903ab1e

Please sign in to comment.