Fix issue with null value in inductor causing exceptions

This commit is contained in:
Bane Stojkovic
2023-03-28 16:12:19 +02:00
parent 24c8afd620
commit 3a5e6f553d
2 changed files with 2 additions and 2 deletions
@@ -226,7 +226,7 @@ public abstract class NetlistAnalyzer {
}
protected String extractName(IDIYComponent<?> c) {
return c.getName() + " " + c.getValueForDisplay();
return c.getName() + " " + (c.getValueForDisplay() == null ? "" : c.getValueForDisplay());
}
public static List<Set<IDIYComponent<?>>> extractComponentGroups(List<Netlist> netlists) {
@@ -76,7 +76,7 @@ public class RadialInductor extends AbstractRadialComponent<Inductance> {
@Override
public String getValueForDisplay() {
return getValue().toString();
return getValue() == null ? null : getValue().toString();
}
@Override