Changeset 8705 in josm


Ignore:
Timestamp:
2015-09-01T11:12:25+02:00 (9 years ago)
Author:
simon04
Message:

OpenFileAction: fix NPE - fixes #11817

NPE occurred when launching JOSM w/ invalid filename, e.g. geo:1,2

File:
1 edited

Legend:

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

    r8390 r8705  
    110110                if (file.exists()) {
    111111                    this.files.add(file);
    112                 } else {
     112                } else if (file.getParentFile() != null) {
    113113                    // try to guess an extension using the specified fileFilter
    114114                    final File[] matchingFiles = file.getParentFile().listFiles(new FilenameFilter() {
Note: See TracChangeset for help on using the changeset viewer.