Changeset 18806 in josm for trunk/src


Ignore:
Timestamp:
2023-08-14T17:56:25+02:00 (15 months ago)
Author:
taylor.smock
Message:

Fix #23119: NPE in RemoteEntry.getLastModified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/RemoteEntry.java

    r18635 r18806  
    220220    @Override
    221221    public Instant getLastModified() {
    222         if (this.getImageURI().getScheme().contains("file:")) {
     222        if ("file".equals(this.getImageURI().getScheme())) {
    223223            try {
    224224                return Files.getLastModifiedTime(Paths.get(this.getImageURI())).toInstant();
Note: See TracChangeset for help on using the changeset viewer.