Program: 58114
Project: 58114
Buggy source:
public CompoundTag getCompoundTag(World world,Plot plot){
  final Location pos1=PlotHelper.getPlotBottomLoc(world,plot.id).add(1,0,1);
  final Location pos2=PlotHelper.getPlotTopLoc(world,plot.id);
  for (int i=(pos1.getBlockX() / 16) * 16; i < (16 + ((pos2.getBlockX() / 16) * 16)); i+=16) {
    for (int j=(pos1.getBlockZ() / 16) * 16; j < (16 + ((pos2.getBlockZ() / 16) * 16)); j+=16) {
      Chunk chunk=world.getChunkAt(i,j);
      chunk.load(true);
    }
  }
  int MAX_SIZE=Short.MAX_VALUE - Short.MIN_VALUE;
  return null;
}

Fixed version (ground truth):
public CompoundTag getCompoundTag(World world,Plot plot){
  final Location pos1=PlotHelper.getPlotBottomLoc(world,plot.id).add(1,0,1);
  final Location pos2=PlotHelper.getPlotTopLoc(world,plot.id);
  for (int i=(pos1.getBlockX() / 16) * 16; i < (16 + ((pos2.getBlockX() / 16) * 16)); i+=16) {
    for (int j=(pos1.getBlockZ() / 16) * 16; j < (16 + ((pos2.getBlockZ() / 16) * 16)); j+=16) {
      Chunk chunk=world.getChunkAt(i,j);
      chunk.load(true);
    }
  }
  int MAX_SIZE=Short.MAX_VALUE - Short.MIN_VALUE;
  int width=region.getWidth();
  int height=region.getHeight();
  int length=region.getLength();
  if (width > MAX_SIZE) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (height > MAX_SIZE) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  if (length > MAX_SIZE) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  HashMap<String,Tag> schematic=new HashMap<String,Tag>();
  schematic.put("String_Node_Str",new ShortTag("String_Node_Str",(short)width));
  schematic.put("String_Node_Str",new ShortTag("String_Node_Str",(short)length));
  schematic.put("String_Node_Str",new ShortTag("String_Node_Str",(short)height));
  schematic.put("String_Node_Str",new StringTag("String_Node_Str","String_Node_Str"));
  schematic.put("String_Node_Str",new IntTag("String_Node_Str",min.getBlockX()));
  schematic.put("String_Node_Str",new IntTag("String_Node_Str",min.getBlockY()));
  schematic.put("String_Node_Str",new IntTag("String_Node_Str",min.getBlockZ()));
  schematic.put("String_Node_Str",new IntTag("String_Node_Str",offset.getBlockX()));
  schematic.put("String_Node_Str",new IntTag("String_Node_Str",offset.getBlockY()));
  schematic.put("String_Node_Str",new IntTag("String_Node_Str",offset.getBlockZ()));
  byte[] blocks=new byte[width * height * length];
  byte[] addBlocks=null;
  byte[] blockData=new byte[width * height * length];
  List<Tag> tileEntities=new ArrayList<Tag>();
  for (  Vector point : region) {
    Vector relative=point.subtract(min);
    int x=relative.getBlockX();
    int y=relative.getBlockY();
    int z=relative.getBlockZ();
    int index=y * width * length + z * width + x;
    BaseBlock block=clipboard.getBlock(point);
    if (block.getType() > 255) {
      if (addBlocks == null) {
        addBlocks=new byte[(blocks.length >> 1) + 1];
      }
      addBlocks[index >> 1]=(byte)(((index & 1) == 0) ? addBlocks[index >> 1] & 0xF0 | (block.getType() >> 8) & 0xF : addBlocks[index >> 1] & 0xF | ((block.getType() >> 8) & 0xF) << 4);
    }
    blocks[index]=(byte)block.getType();
    blockData[index]=(byte)block.getData();
    CompoundTag rawTag=block.getNbtData();
    if (rawTag != null) {
      Map<String,Tag> values=new HashMap<String,Tag>();
      for (      Entry<String,Tag> entry : rawTag.getValue().entrySet()) {
        values.put(entry.getKey(),entry.getValue());
      }
      values.put("String_Node_Str",new StringTag("String_Node_Str",block.getNbtId()));
      values.put("String_Node_Str",new IntTag("String_Node_Str",x));
      values.put("String_Node_Str",new IntTag("String_Node_Str",y));
      values.put("String_Node_Str",new IntTag("String_Node_Str",z));
      CompoundTag tileEntityTag=new CompoundTag("String_Node_Str",values);
      tileEntities.add(tileEntityTag);
    }
  }
  schematic.put("String_Node_Str",new ByteArrayTag("String_Node_Str",blocks));
  schematic.put("String_Node_Str",new ByteArrayTag("String_Node_Str",blockData));
  schematic.put("String_Node_Str",new ListTag("String_Node_Str",CompoundTag.class,tileEntities));
  if (addBlocks != null) {
    schematic.put("String_Node_Str",new ByteArrayTag("String_Node_Str",addBlocks));
  }
  List<Tag> entities=new ArrayList<Tag>();
  for (  Entity entity : clipboard.getEntities()) {
    BaseEntity state=entity.getState();
    if (state != null) {
      Map<String,Tag> values=new HashMap<String,Tag>();
      CompoundTag rawTag=state.getNbtData();
      if (rawTag != null) {
        values.putAll(rawTag.getValue());
      }
      values.put("String_Node_Str",new StringTag("String_Node_Str",state.getTypeId()));
      values.put("String_Node_Str",writeVector(entity.getLocation().toVector(),"String_Node_Str"));
      values.put("String_Node_Str",writeRotation(entity.getLocation(),"String_Node_Str"));
      CompoundTag entityTag=new CompoundTag("String_Node_Str",values);
      entities.add(entityTag);
    }
  }
  schematic.put("String_Node_Str",new ListTag("String_Node_Str",CompoundTag.class,entities));
  CompoundTag schematicTag=new CompoundTag("String_Node_Str",schematic);
  return schematicTag;
}