Program: 30466
Project: 30466
Buggy source:
public static void postChanges(final IStorageGrid gs,final ItemStack removed,final ItemStack added,final IActionSource src){
  final IItemStorageChannel itemChannel=AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class);
  final IFluidStorageChannel fluidChannel=AEApi.instance().storage().getStorageChannel(IFluidStorageChannel.class);
  final IItemList<IAEItemStack> itemChanges=itemChannel.createList();
  final IItemList<IAEFluidStack> fluidChanges=fluidChannel.createList();
  if (!removed.isEmpty()) {
    final IMEInventory<IAEItemStack> myItems=AEApi.instance().registries().cell().getCellInventory(removed,null,itemChannel);
    if (myItems != null) {
      for (      final IAEItemStack is : myItems.getAvailableItems(itemChanges)) {
        is.setStackSize(-is.getStackSize());
      }
    }
    final IMEInventory<IAEFluidStack> myFluids=AEApi.instance().registries().cell().getCellInventory(removed,null,fluidChannel);
    if (myFluids != null) {
      for (      final IAEFluidStack is : myFluids.getAvailableItems(fluidChanges)) {
        is.setStackSize(-is.getStackSize());
      }
    }
  }
  if (!added.isEmpty()) {
    final IMEInventory<IAEItemStack> myItems=AEApi.instance().registries().cell().getCellInventory(added,null,itemChannel);
    if (myItems != null) {
      myItems.getAvailableItems(itemChanges);
    }
    final IMEInventory<IAEFluidStack> myFluids=AEApi.instance().registries().cell().getCellInventory(added,null,fluidChannel);
    if (myFluids != null) {
      myFluids.getAvailableItems(fluidChanges);
    }
  }
  gs.postAlterationOfStoredItems(itemChannel,itemChanges,src);
}

Fixed version (ground truth):
public static void postChanges(final IStorageGrid gs,final ItemStack removed,final ItemStack added,final IActionSource src){
  final IItemStorageChannel itemChannel=AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class);
  final IFluidStorageChannel fluidChannel=AEApi.instance().storage().getStorageChannel(IFluidStorageChannel.class);
  final IItemList<IAEItemStack> itemChanges=itemChannel.createList();
  final IItemList<IAEFluidStack> fluidChanges=fluidChannel.createList();
  if (!removed.isEmpty()) {
    final IMEInventory<IAEItemStack> myItems=AEApi.instance().registries().cell().getCellInventory(removed,null,itemChannel);
    if (myItems != null) {
      for (      final IAEItemStack is : myItems.getAvailableItems(itemChanges)) {
        is.setStackSize(-is.getStackSize());
      }
    }
    final IMEInventory<IAEFluidStack> myFluids=AEApi.instance().registries().cell().getCellInventory(removed,null,fluidChannel);
    if (myFluids != null) {
      for (      final IAEFluidStack is : myFluids.getAvailableItems(fluidChanges)) {
        is.setStackSize(-is.getStackSize());
      }
    }
  }
  if (!added.isEmpty()) {
    final IMEInventory<IAEItemStack> myItems=AEApi.instance().registries().cell().getCellInventory(added,null,itemChannel);
    if (myItems != null) {
      myItems.getAvailableItems(itemChanges);
    }
    final IMEInventory<IAEFluidStack> myFluids=AEApi.instance().registries().cell().getCellInventory(added,null,fluidChannel);
    if (myFluids != null) {
      myFluids.getAvailableItems(fluidChanges);
    }
  }
  gs.postAlterationOfStoredItems(itemChannel,itemChanges,src);
  gs.postAlterationOfStoredItems(fluidChannel,fluidChanges,src);
}