Covered humbucker pickup throwing errors when rotated

This commit is contained in:
Branislav Stojkovic
2019-01-07 23:39:15 +01:00
parent dbf3a1e64d
commit 405f8367df
2 changed files with 3 additions and 2 deletions
Binary file not shown.
@@ -267,8 +267,9 @@ public class HumbuckerPickup extends AbstractTransparentComponent<String> {
}
AffineTransform rotation = AffineTransform.getRotateInstance(theta, x, y);
for (Shape shape : body) {
Area area = (Area) shape;
area.transform(rotation);
Area area = (Area) shape;
if (area != null)
area.transform(rotation);
}
}
}