Changeset 16428 in josm


Ignore:
Timestamp:
2020-05-16T21:25:56+02:00 (3 weeks ago)
Author:
simon04
Message:

see #18712 - CachedFile: report offline mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r16426 r16428  
    466466        // No local file + offline => nothing to do
    467467        if (offline) {
    468             return null;
     468            throw new IOException(OfflineAccessException.forResource(urlStr).getMessage());
    469469        }
    470470
     
    496496            if (ifModifiedSince != null && con.getResponseCode() == HttpURLConnection.HTTP_NOT_MODIFIED) {
    497497                Logging.debug("304 Not Modified ({0})", urlStr);
    498                 if (localFile == null)
    499                     throw new AssertionError();
    500498                Config.getPref().putList(prefKey,
    501499                        Arrays.asList(Long.toString(System.currentTimeMillis()), localPathEntry.get(1)));
Note: See TracChangeset for help on using the changeset viewer.