Ignore:
Timestamp:
2017-06-13T22:06:05+02:00 (9 years ago)
Author:
donvip
Message:

fix #josm14728 - fix NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java

    r32556 r33392  
    1717import java.io.ObjectOutputStream;
    1818import java.io.Serializable;
     19import java.util.Objects;
    1920
    2021import javax.imageio.ImageIO;
     
    4647
    4748    public GeorefImage(BufferedImage img, EastNorth min, EastNorth max, WMSLayer wmsLayer) {
    48         image = img;
    49 
    50         this.min = min;
    51         this.max = max;
     49        image = Objects.requireNonNull(img);
     50
     51        this.min = Objects.requireNonNull(min);
     52        this.max = Objects.requireNonNull(max);
    5253        this.orgRaster[0] = min;
    5354        this.orgRaster[1] = new EastNorth(min.east(), max.north());
Note: See TracChangeset for help on using the changeset viewer.