Changeset 8757 in josm for trunk/src/org


Ignore:
Timestamp:
2015-09-13T22:59:33+02:00 (9 years ago)
Author:
simon04
Message:

fix #11853 - NPE while opening unavailable recent file

File:
1 edited

Legend:

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

    r8705 r8757  
    115115                        @Override
    116116                        public boolean accept(File dir, String name) {
    117                             return name.startsWith(file.getName()) && fileFilter.accept(new File(dir, name));
     117                            return name.startsWith(file.getName())
     118                                    && fileFilter != null && fileFilter.accept(new File(dir, name));
    118119                        }
    119120                    });
Note: See TracChangeset for help on using the changeset viewer.