fix: Toroidal Inductor hangs the application if it doesn't have inductance value set

This commit is contained in:
Bane Stojkovic
2024-09-20 22:10:56 +02:00
parent 8b414b8fda
commit 7e04c18b14
5 changed files with 13 additions and 1 deletions
@@ -82,7 +82,7 @@ public class ToroidalInductor extends AbstractLeadedComponent<Inductance> {
@Override
public String getValueForDisplay() {
return getValue().toString();
return getValue() == null ? "" : getValue().toString();
}
public void drawIcon(Graphics2D g2d, int width, int height) {