Loading data-access/servlet/src/main/java/cutout/CutoutImpl.java +3 −3 Original line number Diff line number Diff line Loading @@ -239,15 +239,15 @@ class CutoutImpl implements Cutout int ix; for(ix=0; ix<bnds.length; ix++) { if(types[ix].equals("LON") && (pos.system == Pos.System.GRID)) if( types[ix].equals("LON") && ((pos != null) && (pos.system == Pos.System.GRID)) ) { bnds[ix] = pos.lonBoundsString(); } else if(types[ix].equals("LAT") && (pos.system == Pos.System.GRID)) else if(types[ix].equals("LAT") && ((pos != null) && (pos.system == Pos.System.GRID))) { bnds[ix] = pos.latBoundsString(); } else if(types[ix].equals("BAND") && (band.system == Band.System.GRID)) else if(types[ix].equals("BAND") && ((band != null) && (band.system == Band.System.GRID))) { bnds[ix] = band.boundsString(); } Loading Loading
data-access/servlet/src/main/java/cutout/CutoutImpl.java +3 −3 Original line number Diff line number Diff line Loading @@ -239,15 +239,15 @@ class CutoutImpl implements Cutout int ix; for(ix=0; ix<bnds.length; ix++) { if(types[ix].equals("LON") && (pos.system == Pos.System.GRID)) if( types[ix].equals("LON") && ((pos != null) && (pos.system == Pos.System.GRID)) ) { bnds[ix] = pos.lonBoundsString(); } else if(types[ix].equals("LAT") && (pos.system == Pos.System.GRID)) else if(types[ix].equals("LAT") && ((pos != null) && (pos.system == Pos.System.GRID))) { bnds[ix] = pos.latBoundsString(); } else if(types[ix].equals("BAND") && (band.system == Band.System.GRID)) else if(types[ix].equals("BAND") && ((band != null) && (band.system == Band.System.GRID))) { bnds[ix] = band.boundsString(); } Loading