diff --git a/src/org/openstreetmap/josm/gui/mappaint/MapImage.java b/src/org/openstreetmap/josm/gui/mappaint/MapImage.java
index d013e30..423c04a 100644
|
a
|
b
|
public class MapImage {
|
| 64 | 64 | public void finished(ImageIcon result) { |
| 65 | 65 | synchronized (MapImage.this) { |
| 66 | 66 | if (result == null) { |
| 67 | | img = (BufferedImage) MapPaintStyles.getNoIcon_Icon(source).getImage(); |
| | 67 | ImageIcon noIcon = MapPaintStyles.getNoIcon_Icon(source); |
| | 68 | img = noIcon == null ? null : (BufferedImage) noIcon.getImage(); |
| 68 | 69 | } else { |
| 69 | 70 | img = (BufferedImage) result.getImage(); |
| 70 | 71 | } |
diff --git a/src/org/openstreetmap/josm/tools/ImageProvider.java b/src/org/openstreetmap/josm/tools/ImageProvider.java
index 60bee7d..014813d 100644
|
a
|
b
|
public class ImageProvider {
|
| 249 | 249 | throw new RuntimeException(tr("Fatal: failed to locate image ''{0}''. This is a serious configuration problem. JOSM will stop working.", name + ext)); |
| 250 | 250 | } else { |
| 251 | 251 | if (!suppressWarnings) { |
| 252 | | System.err.println(tr("Failed to locate image ''{0}''", name)); |
| | 252 | System.err.println(tr("Failed to locate image ''{0}'' from dirs {1}, subdir ''{2}'', zip ''{3}''", name, dirs, subdir, archive)); |
| 253 | 253 | } |
| 254 | 254 | return null; |
| 255 | 255 | } |