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


Ignore:
Timestamp:
2017-03-01T23:28:34+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #14157 - NPE opening a session

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

Legend:

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

    r10601 r11645  
    138138
    139139        private void runPostLoadTasks() {
    140             for (Runnable task : postLoadTasks) {
    141                 if (canceled)
    142                     return;
    143                 if (task == null) {
    144                     continue;
     140            if (postLoadTasks != null) {
     141                for (Runnable task : postLoadTasks) {
     142                    if (canceled)
     143                        return;
     144                    if (task == null) {
     145                        continue;
     146                    }
     147                    task.run();
    145148                }
    146                 task.run();
    147149            }
    148150        }
  • trunk/src/org/openstreetmap/josm/io/session/SessionReader.java

    r11620 r11645  
    256256                } else
    257257                    throw new IOException(tr("Unsupported scheme ''{0}'' in URI ''{1}''.", uri.getScheme(), uriStr));
    258             } catch (URISyntaxException e) {
     258            } catch (URISyntaxException | IllegalArgumentException e) {
    259259                throw new IOException(e);
    260260            }
Note: See TracChangeset for help on using the changeset viewer.