Index: applications/editors/josm/plugins/openvisible/build.xml
===================================================================
--- applications/editors/josm/plugins/openvisible/build.xml	(revision 17535)
+++ applications/editors/josm/plugins/openvisible/build.xml	(revision 17536)
@@ -26,5 +26,5 @@
                 <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5"/>
                 <attribute name="Plugin-Description" value="Allows opening gpx/osm files that intersect the currently visible screen area"/>
-                <attribute name="Plugin-Mainversion" value="1813"/>
+                <attribute name="Plugin-Mainversion" value="2082"/>
                 <attribute name="Plugin-Stage" value="50"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
Index: applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java
===================================================================
--- applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java	(revision 17535)
+++ applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java	(revision 17536)
@@ -30,8 +30,11 @@
 import org.openstreetmap.josm.io.GpxImporter;
 import org.openstreetmap.josm.io.GpxReader;
+import org.openstreetmap.josm.io.IllegalDataException;
 import org.openstreetmap.josm.io.OsmImporter;
 import org.openstreetmap.josm.io.OsmReader;
 import org.openstreetmap.josm.tools.Shortcut;
 import org.xml.sax.SAXException;
+
+import at.dallermassl.josm.plugin.openvisible.OsmGpxBounds;
 
 /**
@@ -94,4 +97,6 @@
             } catch (SAXException e1) {
                 e1.printStackTrace();
+            } catch(IllegalDataException e1) {
+            	e1.printStackTrace();
             }
         }
@@ -99,5 +104,5 @@
     }
 
-    private void openAsData(File file) throws SAXException, IOException, FileNotFoundException {
+    private void openAsData(File file) throws SAXException, IOException, FileNotFoundException, IllegalDataException {
         String fn = file.getName();
         if (new OsmImporter().acceptFile(file)) {
Index: applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java
===================================================================
--- applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java	(revision 17535)
+++ applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java	(revision 17536)
@@ -7,5 +7,4 @@
 import org.openstreetmap.josm.gui.MainMenu;
 import org.openstreetmap.josm.plugins.Plugin;
-import org.openstreetmap.josm.actions.JosmAction;
 
 /**
