Changeset 31410 in osm for applications/editors/josm/plugins/mapillary/src
- Timestamp:
- 2015-07-27T14:52:11+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryImportedImage.java
r31390 r31410 63 63 * Returns the pictures of the file. 64 64 * 65 * @return A BufferedImage object containing the pictures. 65 * @return A BufferedImage object containing the picture, 66 * or null if the {@link File} given in the constructor was null. 66 67 * @throws IOException 67 * @throws IllegalArgumentException68 * if file is currently set to null69 68 */ 70 69 public BufferedImage getImage() throws IOException { 71 return ImageIO.read(file);70 return file == null ? null : ImageIO.read(file); 72 71 } 73 72
Note:
See TracChangeset
for help on using the changeset viewer.