Program: 10173
Project: 10173
Buggy source:
private void loadIdentifiers(final InventoryHolder holder){
  if (inventory == null) {
    return;
  }
  if (holder != null) {
    if (holder instanceof dNPC) {
      idType="String_Node_Str";
      idHolder=((dNPC)holder).identify();
      return;
    }
 else     if (holder instanceof Player) {
      if (inventory.getType() == InventoryType.ENDER_CHEST) {
        idType="String_Node_Str";
      }
 else       if (inventory.getType() == InventoryType.WORKBENCH) {
        idType="String_Node_Str";
      }
 else {
        idType="String_Node_Str";
      }
      idHolder=new dPlayer((Player)holder).identify();
      return;
    }
 else     if (holder instanceof Entity) {
      idType="String_Node_Str";
      idHolder=new dEntity((Entity)holder).identify();
      return;
    }
 else {
      idType="String_Node_Str";
      try {
        idHolder=getLocation(holder).identify();
      }
 catch (      NullPointerException e) {
        idHolder="String_Node_Str";
      }
      return;
    }
  }
 else   if (getIdType().equals("String_Node_Str")) {
    for (    Map.Entry<UUID,PlayerInventory> inv : InventoryScriptHelper.offlineInventories.entrySet()) {
      if (((CraftInventory)inv.getValue()).getInventory().equals(((CraftInventory)inventory).getInventory())) {
        idHolder=new dPlayer(inv.getKey()).identify();
        return;
      }
    }
  }
 else   if (getIdType().equals("String_Node_Str")) {
    for (    Map.Entry<UUID,Inventory> inv : InventoryScriptHelper.offlineEnderChests.entrySet()) {
      if (((CraftInventory)inv.getValue()).getInventory().equals(((CraftInventory)inventory).getInventory())) {
        idHolder=new dPlayer(inv.getKey()).identify();
        return;
      }
    }
  }
 else   if (getIdType().equals("String_Node_Str")) {
    if (InventoryScriptHelper.tempInventoryScripts.containsKey(inventory)) {
      idHolder=InventoryScriptHelper.tempInventoryScripts.get(inventory);
      return;
    }
  }
  idType="String_Node_Str";
  idHolder=getInventory().getType().name();
}

Fixed version (ground truth):
private void loadIdentifiers(final InventoryHolder holder){
  if (inventory == null) {
    return;
  }
  if (holder != null) {
    if (holder instanceof dNPC) {
      idType="String_Node_Str";
      idHolder=((dNPC)holder).identify();
      return;
    }
 else     if (holder instanceof Player) {
      if (Depends.citizens != null && CitizensAPI.getNPCRegistry().isNPC((Player)holder)) {
        idType="String_Node_Str";
        idHolder=(dNPC.fromEntity((Player)holder)).identify();
      }
      if (inventory.getType() == InventoryType.ENDER_CHEST) {
        idType="String_Node_Str";
      }
 else       if (inventory.getType() == InventoryType.WORKBENCH) {
        idType="String_Node_Str";
      }
 else {
        idType="String_Node_Str";
      }
      idHolder=new dPlayer((Player)holder).identify();
      return;
    }
 else     if (holder instanceof Entity) {
      idType="String_Node_Str";
      idHolder=new dEntity((Entity)holder).identify();
      return;
    }
 else {
      idType="String_Node_Str";
      try {
        idHolder=getLocation(holder).identify();
      }
 catch (      NullPointerException e) {
        idHolder="String_Node_Str";
      }
      return;
    }
  }
 else   if (getIdType().equals("String_Node_Str")) {
    for (    Map.Entry<UUID,PlayerInventory> inv : InventoryScriptHelper.offlineInventories.entrySet()) {
      if (((CraftInventory)inv.getValue()).getInventory().equals(((CraftInventory)inventory).getInventory())) {
        idHolder=new dPlayer(inv.getKey()).identify();
        return;
      }
    }
  }
 else   if (getIdType().equals("String_Node_Str")) {
    for (    Map.Entry<UUID,Inventory> inv : InventoryScriptHelper.offlineEnderChests.entrySet()) {
      if (((CraftInventory)inv.getValue()).getInventory().equals(((CraftInventory)inventory).getInventory())) {
        idHolder=new dPlayer(inv.getKey()).identify();
        return;
      }
    }
  }
 else   if (getIdType().equals("String_Node_Str")) {
    if (InventoryScriptHelper.tempInventoryScripts.containsKey(inventory)) {
      idHolder=InventoryScriptHelper.tempInventoryScripts.get(inventory);
      return;
    }
  }
  idType="String_Node_Str";
  idHolder=getInventory().getType().name();
}