- Timestamp:
- 2014-06-08T13:40:35+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java
r7175 r7221 142 142 URLConnection openConnection = Utils.openHttpConnection(getCapabilitiesUrl); 143 143 StringBuilder ba = new StringBuilder(); 144 144 145 145 try ( 146 146 InputStream inputStream = openConnection.getInputStream(); … … 224 224 || format.startsWith("image/bmp") && ImageIO.getImageReadersBySuffix("bmp").hasNext(); 225 225 } 226 226 227 227 static boolean imageFormatHasTransparency(final String format) { 228 return format .startsWith("image/png") || format.startsWith("image/gif")229 || format.startsWith("image/svg") || format.startsWith("image/tiff") ;228 return format != null && (format.startsWith("image/png") || format.startsWith("image/gif") 229 || format.startsWith("image/svg") || format.startsWith("image/tiff")); 230 230 } 231 231
Note:
See TracChangeset
for help on using the changeset viewer.