mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
fix: Toroidal Inductor hangs the application if it doesn't have inductance value set
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user