Ignore:
Timestamp:
2015-05-02T00:55:19+02:00 (9 years ago)
Author:
Don-vip
Message:

fix potential NPEs and Sonar issues related to serialization

File:
1 edited

Legend:

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

    r8202 r8308  
    118118                        }
    119119                    });
    120                     if (matchingFiles.length == 1) {
     120                    if (matchingFiles != null && matchingFiles.length == 1) {
    121121                        // use the unique match as filename
    122122                        this.files.add(matchingFiles[0]);
Note: See TracChangeset for help on using the changeset viewer.