micropeak: Missing a couple of new exceptions when loading files
[fw/altos] / micropeak / MicroPeak.java
index 2a8e2ca63c754e0aa8b4d0e193a212bead74de85..78bc857ec2818746a3fc9f05a5b5d97556286ce0 100644 (file)
@@ -65,6 +65,10 @@ public class MicroPeak extends MicroFrame implements ActionListener, ItemListene
                try {
                        data = new MicroData((InputStream) fis, filename.getName());
                        AltosUIPreferences.set_last_logdir(filename);
+               } catch (MicroData.NonHexcharException nhe) {
+                       data = null;
+               } catch (MicroData.FileEndedException nhe) {
+                       data = null;
                } catch (InterruptedException ie) {
                        data = null;
                } finally {