Changeset 204 in josm


Ignore:
Timestamp:
2007-04-02T12:46:04+02:00 (18 years ago)
Author:
imi
Message:
  • Fixed the markerlayer import throwing NPE when image not found
  • Fixed an Exception when server responding with an illegal HTTP-header
Location:
src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r189 r204  
    6666                data.add(list);
    6767                return data;
     68        } catch (IllegalArgumentException e) {
     69                // caused by HttpUrlConnection in case of illegal stuff in the response
     70                if (cancel)
     71                        return null;
     72                throw e;
    6873        } catch (IOException e) {
    6974                if (cancel)
  • src/org/openstreetmap/josm/tools/ImageProvider.java

    r200 r204  
    7777                }
    7878                if (path == null)
    79                         throw new NullPointerException("/images/"+subdir+name+ext+" not found");
     79                        return null;
    8080                Image img = cache.get(path);
    8181                if (img == null) {
Note: See TracChangeset for help on using the changeset viewer.