fixed a bug which causes a NullPointerException if in a test case a signal is named which does not exist in the circuit.

This commit is contained in:
hneemann 2016-11-10 13:53:03 +01:00
parent 0d59b974c0
commit d36d90061f

View File

@ -120,7 +120,7 @@ public class TestResultDialog extends JDialog {
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
JLabel comp = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
Value v = (Value) value;
if (v != null) {
comp.setText(v.toString());
comp.setHorizontalAlignment(JLabel.CENTER);
@ -131,7 +131,7 @@ public class TestResultDialog extends JDialog {
comp.setBackground(FAILED_COLOR);
} else
comp.setBackground(Color.WHITE);
}
return comp;
}
}