projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2289fd3
)
altosuilib: Allow config to be missing in rom config dialog
author
Keith Packard
<keithp@keithp.com>
Sun, 23 Aug 2020 22:34:26 +0000
(15:34 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 23 Aug 2020 22:34:26 +0000
(15:34 -0700)
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>
altosuilib/AltosRomconfigUI.java
patch
|
blob
|
history
diff --git
a/altosuilib/AltosRomconfigUI.java
b/altosuilib/AltosRomconfigUI.java
index a25c39c468796637a479356de689100ad2bbde9d..f2c038a9afaae9d3c7f314f037985a5a4a48fd61 100644
(file)
--- a/
altosuilib/AltosRomconfigUI.java
+++ b/
altosuilib/AltosRomconfigUI.java
@@
-74,7
+74,10
@@
public class AltosRomconfigUI
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++;