Program: 187726
Project: 187726
Buggy source:
public void SaveWolves(){
  cb.WolvesConfig.removeProperty("String_Node_Str");
  for (  String owner : cb.mWolves.keySet()) {
    Wolves wolf=cb.mWolves.get(owner);
    String Items="String_Node_Str";
    if (cb.mWolves.get(owner).Inventory.getContents().length > 0)     for (    ItemStack Item : cb.mWolves.get(owner).Inventory.getContents()) {
      Items+=(Item != null ? Items+=Item.id + "String_Node_Str" + Item.count+ "String_Node_Str"+ Item.damage+ "String_Node_Str" : "String_Node_Str");
    }
    if (cb.mWolves.get(owner).Inventory.getContents().length > 0) {
      Items=Items.substring(0,Items.length() - 1);
    }
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getLocation().getX());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getLocation().getY());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getLocation().getZ());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getLocation().getWorld().getName());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getHealth());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.HealthMax);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.Lives);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.RespawnTime);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",Items);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.Name);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.isSitting());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.hasInventory);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.hasPickup);
  }
  cb.WolvesConfig.save();
}

Fixed version (ground truth):
public void SaveWolves(){
  cb.WolvesConfig.removeProperty("String_Node_Str");
  for (  String owner : cb.mWolves.keySet()) {
    Wolves wolf=cb.mWolves.get(owner);
    String Items="String_Node_Str";
    if (cb.mWolves.get(owner).Inventory.getContents().length > 0)     for (    ItemStack Item : cb.mWolves.get(owner).Inventory.getContents()) {
      if (Item != null) {
        Items+=Item.id + "String_Node_Str" + Item.count+ "String_Node_Str"+ Item.damage+ "String_Node_Str";
      }
 else {
        Items+="String_Node_Str";
      }
    }
    if (cb.mWolves.get(owner).Inventory.getContents().length > 0) {
      Items=Items.substring(0,Items.length() - 1);
    }
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getLocation().getX());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getLocation().getY());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getLocation().getZ());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getLocation().getWorld().getName());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.getHealth());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.HealthMax);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.Lives);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.RespawnTime);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",Items);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.Name);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.isSitting());
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.hasInventory);
    cb.WolvesConfig.setProperty("String_Node_Str" + owner + "String_Node_Str",wolf.hasPickup);
  }
  cb.WolvesConfig.save();
}