Commit b97852dc authored by Robert Butora's avatar Robert Butora
Browse files

fixes bug on POS and BAND params when not given null

parent 0a2f289c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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();
         }