Changeset 12410 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-06-17T18:02:38+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #14945 - InvalidPathException at startup when invalid URL is registered for map paint style

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r11615 r12410  
    760760                    Main.fileWatcher.registerValidatorRule(source);
    761761                }
    762             } catch (IOException | IllegalStateException ex) {
     762            } catch (IOException | IllegalStateException | IllegalArgumentException ex) {
    763763                Main.warn(tr("Failed to add {0} to tag checker", i));
    764764                Main.warn(ex, false);
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r12378 r12410  
    307307            try {
    308308                Main.fileWatcher.registerStyleSource(source);
    309             } catch (IOException | IllegalStateException e) {
     309            } catch (IOException | IllegalStateException | IllegalArgumentException e) {
    310310                Main.error(e);
    311311            }
Note: See TracChangeset for help on using the changeset viewer.