projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
telegps: Trap AltosConfigDataException in telegps config
[fw/altos]
/
telegps
/
TeleGPSConfig.java
diff --git
a/telegps/TeleGPSConfig.java
b/telegps/TeleGPSConfig.java
index ffb2d6122bc594433047c7ec232ba3610a6a28ba..22e6a3ac134477dcdc571502b9300ec35e2347e9 100644
(file)
--- a/
telegps/TeleGPSConfig.java
+++ b/
telegps/TeleGPSConfig.java
@@
-234,9
+234,15
@@
public class TeleGPSConfig implements ActionListener {
/* Pull data out of the UI and stuff back into our local data record */
/* Pull data out of the UI and stuff back into our local data record */
- data.get_values(config_ui);
-
- run_serial_thread(serial_mode_save);
+ try {
+ data.get_values(config_ui);
+ run_serial_thread(serial_mode_save);
+ } catch (AltosConfigDataException ae) {
+ JOptionPane.showMessageDialog(owner,
+ ae.getMessage(),
+ "Configuration Data Error",
+ JOptionPane.ERROR_MESSAGE);
+ }
}
public void actionPerformed(ActionEvent e) {
}
public void actionPerformed(ActionEvent e) {