Changeset 3532 in josm for trunk/src


Ignore:
Timestamp:
2010-09-16T17:54:20+02:00 (14 years ago)
Author:
stoecker
Message:

fix #5460 - ignore invalid urls in plugin specs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r3530 r3532  
    155155            s = attr.getValue("Plugin-Link");
    156156        }
     157        if(s != null) {
     158            try {
     159                URL url = new URL(s);
     160            } catch (MalformedURLException e) {
     161                System.out.println(tr("Invalid URL ''{0}'' in plugin {1}", s, name));
     162                s = null;
     163            }
     164        }
    157165        link = s;
    158166        requires = attr.getValue("Plugin-Requires");
Note: See TracChangeset for help on using the changeset viewer.