If the configuration data can't be fetched from the target board, it
will be missing while building the dialog box. Deal with that.
Signed-off-by: Keith Packard <keithp@keithp.com>
c.weightx = 1;
c.anchor = GridBagConstraints.LINE_START;
c.insets = ir;
c.weightx = 1;
c.anchor = GridBagConstraints.LINE_START;
c.insets = ir;
- product_value = new JLabel(config.usb_product);
+ String product = "unknown";
+ if (config != null)
+ product = config.usb_product;
+ product_value = new JLabel(product);
pane.add(product_value, c);
y++;
pane.add(product_value, c);
y++;