Ignore:
Timestamp:
2013-12-16T00:22:44+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #9434 - Robustness in hash URLs parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java

    r6380 r6474  
    183183        if (!tasks.isEmpty()) {
    184184            // TODO: handle multiple suitable tasks ?
    185             future = tasks.iterator().next().loadUrl(new_layer, url, monitor);
     185            try {
     186                future = tasks.iterator().next().loadUrl(new_layer, url, monitor);
     187            } catch (IllegalArgumentException e) {
     188                Main.error(e);
     189            }
    186190        }
    187191        if (future != null) {
Note: See TracChangeset for help on using the changeset viewer.