Program: 177364
Project: 177364
Buggy source:
private static SpoutEntity loadEntity(World w,CompoundTag tag,String Name,SpoutSession<?> playerSession){
  CompoundMap map=tag.getValue();
  @SuppressWarnings("String_Node_Str") byte version=SafeCast.toByte(NBTMapper.toTagValue(map.get("String_Node_Str")),(byte)0);
  String name=SafeCast.toString(NBTMapper.toTagValue(map.get("String_Node_Str")),"String_Node_Str");
  ControllerType type=ControllerRegistry.get(name);
  if (type == null) {
    Spout.getEngine().getLogger().log(Level.SEVERE,"String_Node_Str" + name);
  }
 else   if (type.canCreateController()) {
    Float pX=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),Float.MAX_VALUE);
    Float pY=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),Float.MAX_VALUE);
    Float pZ=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),Float.MAX_VALUE);
    if (pX == Float.MAX_VALUE || pY == Float.MAX_VALUE || pZ == Float.MAX_VALUE) {
      return null;
    }
    float sX=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),1.0F);
    float sY=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),1.0F);
    float sZ=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),1.0F);
    float qX=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),0.0F);
    float qY=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),0.0F);
    float qZ=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),0.0F);
    float qW=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),1.0F);
    long msb=SafeCast.toLong(NBTMapper.toTagValue(map.get("String_Node_Str")),new Random().nextLong());
    long lsb=SafeCast.toLong(NBTMapper.toTagValue(map.get("String_Node_Str")),new Random().nextLong());
    UUID uid=new UUID(msb,lsb);
    int view=SafeCast.toInt(NBTMapper.toTagValue(map.get("String_Node_Str")),0);
    boolean observer=SafeCast.toGeneric(NBTMapper.toTagValue(map.get("String_Node_Str")),new ByteTag("String_Node_Str",(byte)0),ByteTag.class).getBooleanValue();
    Controller controller=type.createController();
    try {
      boolean controllerDataExists=SafeCast.toGeneric(NBTMapper.toTagValue(map.get("String_Node_Str")),new ByteTag("String_Node_Str",(byte)0),ByteTag.class).getBooleanValue();
      if (controllerDataExists) {
        byte[] data=SafeCast.toByteArray(NBTMapper.toTagValue(map.get("String_Node_Str")),new byte[0]);
        DatatableMap dataMap=((DataMap)controller.getDataMap()).getRawMap();
        dataMap.decompress(data);
      }
    }
 catch (    Exception error) {
      Spout.getEngine().getLogger().log(Level.SEVERE,"String_Node_Str" + type.getName(),error);
      return null;
    }
    Region r=w.getRegion((int)Math.floor(pX),(int)Math.floor(pY),(int)Math.floor(pZ),LoadOption.NO_LOAD);
    if (r == null) {
      Spout.getLogger().info("String_Node_Str" + (int)Math.floor(pX) + "String_Node_Str"+ (int)Math.floor(pY)+ "String_Node_Str"+ (int)Math.floor(pZ));
      return null;
    }
    Transform t=new Transform(new Point(r.getWorld(),pX,pY,pZ),new Quaternion(qX,qY,qZ,qW,false),new Vector3(sX,sY,sZ));
    if (!(controller instanceof PlayerController)) {
      SpoutEntity e=new SpoutEntity((SpoutEngine)Spout.getEngine(),t,controller,view,uid,false);
      e.setObserver(observer);
      return e;
    }
 else {
      SpoutPlayer e=new SpoutPlayer(Name,t,playerSession,(SpoutEngine)Spout.getEngine(),view);
      return e;
    }
  }
 else {
    Spout.getEngine().getLogger().log(Level.SEVERE,"String_Node_Str" + type.getName());
  }
  return null;
}

Fixed version (ground truth):
private static SpoutEntity loadEntity(World w,CompoundTag tag,String Name,SpoutSession<?> playerSession){
  CompoundMap map=tag.getValue();
  @SuppressWarnings("String_Node_Str") byte version=SafeCast.toByte(NBTMapper.toTagValue(map.get("String_Node_Str")),(byte)0);
  String name=SafeCast.toString(NBTMapper.toTagValue(map.get("String_Node_Str")),"String_Node_Str");
  ControllerType type=ControllerRegistry.get(name);
  if (type == null) {
    Spout.getEngine().getLogger().log(Level.SEVERE,"String_Node_Str" + name);
  }
 else   if (type.canCreateController()) {
    Float pX=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),Float.MAX_VALUE);
    Float pY=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),Float.MAX_VALUE);
    Float pZ=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),Float.MAX_VALUE);
    if (pX == Float.MAX_VALUE || pY == Float.MAX_VALUE || pZ == Float.MAX_VALUE) {
      return null;
    }
    float sX=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),1.0F);
    float sY=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),1.0F);
    float sZ=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),1.0F);
    float qX=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),0.0F);
    float qY=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),0.0F);
    float qZ=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),0.0F);
    float qW=SafeCast.toFloat(NBTMapper.toTagValue(map.get("String_Node_Str")),1.0F);
    long msb=SafeCast.toLong(NBTMapper.toTagValue(map.get("String_Node_Str")),new Random().nextLong());
    long lsb=SafeCast.toLong(NBTMapper.toTagValue(map.get("String_Node_Str")),new Random().nextLong());
    UUID uid=new UUID(msb,lsb);
    int view=SafeCast.toInt(NBTMapper.toTagValue(map.get("String_Node_Str")),0);
    boolean observer=SafeCast.toGeneric(NBTMapper.toTagValue(map.get("String_Node_Str")),new ByteTag("String_Node_Str",(byte)0),ByteTag.class).getBooleanValue();
    Controller controller=type.createController();
    try {
      boolean controllerDataExists=SafeCast.toGeneric(NBTMapper.toTagValue(map.get("String_Node_Str")),new ByteTag("String_Node_Str",(byte)0),ByteTag.class).getBooleanValue();
      if (controllerDataExists) {
        byte[] data=SafeCast.toByteArray(NBTMapper.toTagValue(map.get("String_Node_Str")),new byte[0]);
        DatatableMap dataMap=((DataMap)controller.getDataMap()).getRawMap();
        dataMap.decompress(data);
      }
    }
 catch (    Exception error) {
      Spout.getEngine().getLogger().log(Level.SEVERE,"String_Node_Str" + type.getName(),error);
      return null;
    }
    Region r=w.getRegionFromBlock((int)Math.floor(pX),(int)Math.floor(pY),(int)Math.floor(pZ),LoadOption.NO_LOAD);
    if (r == null) {
      Spout.getLogger().info("String_Node_Str" + (int)Math.floor(pX) + "String_Node_Str"+ (int)Math.floor(pY)+ "String_Node_Str"+ (int)Math.floor(pZ));
      return null;
    }
    Transform t=new Transform(new Point(r.getWorld(),pX,pY,pZ),new Quaternion(qX,qY,qZ,qW,false),new Vector3(sX,sY,sZ));
    if (!(controller instanceof PlayerController)) {
      SpoutEntity e=new SpoutEntity((SpoutEngine)Spout.getEngine(),t,controller,view,uid,false);
      e.setObserver(observer);
      return e;
    }
 else {
      SpoutPlayer e=new SpoutPlayer(Name,t,playerSession,(SpoutEngine)Spout.getEngine(),view);
      return e;
    }
  }
 else {
    Spout.getEngine().getLogger().log(Level.SEVERE,"String_Node_Str" + type.getName());
  }
  return null;
}