Program: 187642
Project: 187642
Buggy source:
int loadPets(File f){
  int petCount=0;
  NBTConfiguration nbtConfiguration=new NBTConfiguration(f);
  nbtConfiguration.load();
  NBTTagList Wolves=nbtConfiguration.getNBTTagCompound().getList("String_Node_Str");
  debugLogger.info("String_Node_Str");
  for (int i=0; i < Wolves.size(); i++) {
    NBTTagCompound MPetNBT=(NBTTagCompound)Wolves.get(i);
    NBTTagCompound Location=MPetNBT.getCompound("String_Node_Str");
    double PetX=Location.getDouble("String_Node_Str");
    double PetY=Location.getDouble("String_Node_Str");
    double PetZ=Location.getDouble("String_Node_Str");
    String PetWorld=Location.getString("String_Node_Str");
    double PetExp=MPetNBT.getDouble("String_Node_Str");
    int PetHealthNow=MPetNBT.getInt("String_Node_Str");
    int PetRespawnTime=MPetNBT.getInt("String_Node_Str");
    String PetName=MPetNBT.getString("String_Node_Str");
    String Owner=MPetNBT.getString("String_Node_Str");
    String PetType;
    if (MPetNBT.hasKey("String_Node_Str")) {
      PetType=MPetNBT.getString("String_Node_Str");
    }
 else {
      PetType="String_Node_Str";
    }
    boolean PetSitting=MPetNBT.getBoolean("String_Node_Str");
    InactiveMyPet IMPet=new InactiveMyPet(MyPetPlayer.getMyPetPlayer(Owner));
    IMPet.setLocation(new Location(MyPetUtil.getServer().getWorld(PetWorld) != null ? MyPetUtil.getServer().getWorld(PetWorld) : MyPetUtil.getServer().getWorlds().get(0),PetX,PetY,PetZ));
    IMPet.setHealth(PetHealthNow);
    IMPet.setRespawnTime(PetRespawnTime);
    IMPet.setName(PetName);
    IMPet.setSitting(PetSitting);
    IMPet.setExp(PetExp);
    IMPet.setSkills(MPetNBT.getCompound("String_Node_Str"));
    IMPet.setType(MyPetType.valueOf(PetType));
    IMPet.setInfo(MPetNBT.getCompound("String_Node_Str"));
    MyPetList.addInactiveMyPet(IMPet);
    debugLogger.info("String_Node_Str" + IMPet.toString());
    petCount++;
  }
  debugLogger.info(petCount + "String_Node_Str");
  MyPetUtil.getLogger().info(petCount + "String_Node_Str");
  return petCount;
}

Fixed version (ground truth):
int loadPets(File f){
  int petCount=0;
  NBTConfiguration nbtConfiguration=new NBTConfiguration(f);
  nbtConfiguration.load();
  NBTTagList Wolves=nbtConfiguration.getNBTTagCompound().getList("String_Node_Str");
  debugLogger.info("String_Node_Str");
  for (int i=0; i < Wolves.size(); i++) {
    NBTTagCompound myPetNBT=(NBTTagCompound)Wolves.get(i);
    NBTTagCompound locationNBT=myPetNBT.getCompound("String_Node_Str");
    double PetX=locationNBT.getDouble("String_Node_Str");
    double PetY=locationNBT.getDouble("String_Node_Str");
    double PetZ=locationNBT.getDouble("String_Node_Str");
    String PetWorld=locationNBT.getString("String_Node_Str");
    double PetExp=myPetNBT.getDouble("String_Node_Str");
    int PetHealthNow=myPetNBT.getInt("String_Node_Str");
    int PetRespawnTime=myPetNBT.getInt("String_Node_Str");
    String PetName=myPetNBT.getString("String_Node_Str");
    String Owner=myPetNBT.getString("String_Node_Str");
    String PetType;
    if (myPetNBT.hasKey("String_Node_Str")) {
      PetType=myPetNBT.getString("String_Node_Str");
    }
 else {
      PetType="String_Node_Str";
    }
    boolean PetSitting=myPetNBT.getBoolean("String_Node_Str");
    InactiveMyPet IMPet=new InactiveMyPet(MyPetPlayer.getMyPetPlayer(Owner));
    IMPet.setLocation(new Location(MyPetUtil.getServer().getWorld(PetWorld) != null ? MyPetUtil.getServer().getWorld(PetWorld) : MyPetUtil.getServer().getWorlds().get(0),PetX,PetY,PetZ));
    IMPet.setHealth(PetHealthNow);
    IMPet.setRespawnTime(PetRespawnTime);
    IMPet.setName(PetName);
    IMPet.setSitting(PetSitting);
    IMPet.setExp(PetExp);
    IMPet.setSkills(myPetNBT.getCompound("String_Node_Str"));
    IMPet.setType(MyPetType.valueOf(PetType));
    IMPet.setInfo(myPetNBT.getCompound("String_Node_Str"));
    MyPetList.addInactiveMyPet(IMPet);
    debugLogger.info("String_Node_Str" + IMPet.toString());
    petCount++;
  }
  debugLogger.info(petCount + "String_Node_Str");
  MyPetUtil.getLogger().info(petCount + "String_Node_Str");
  return petCount;
}