Changeset 12524 in josm
- Timestamp:
- 2017-07-27T18:36:09+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r12508 r12524 1714 1714 ImageReadParam param = reader.getDefaultReadParam(); 1715 1715 reader.setInput(stream, true, !readMetadata && !enforceTransparency); 1716 BufferedImage bi ;1716 BufferedImage bi = null; 1717 1717 try { 1718 1718 bi = reader.read(0, param); … … 1731 1731 } 1732 1732 } 1733 } catch (LinkageError e) { 1734 // On Windows, ComponentColorModel.getRGBComponent can fail with "UnsatisfiedLinkError: no awt in java.library.path", see #13973 1735 // Then it can leads to "NoClassDefFoundError: Could not initialize class sun.awt.image.ShortInterleavedRaster", see #15079 1736 Main.error(e); 1733 1737 } finally { 1734 1738 reader.dispose(); … … 1791 1795 // JAI doesn't like some JPEG files with error "Inconsistent metadata read from stream" (see #10267) 1792 1796 Main.warn(e); 1793 } catch (UnsatisfiedLinkError e) {1794 // On Windows, ComponentColorModel.getRGBComponent can fail with "UnsatisfiedLinkError: no awt in java.library.path", see #139731795 Main.error(e);1796 1797 } 1797 1798 return null;
Note:
See TracChangeset
for help on using the changeset viewer.