Program: 66147
Project: 66147
Buggy source:
/** 
 * Updates chart element Palette.
 * @param eObj chart element object.
 * @param eRefObj reference chart element object.
 * @param eDefObj default chart element object.
 * @param eDefOverride indicates if using default object to override target object if target is null.
 * @param axisIndex index of axis.
 * @param seriesDefIndex index of series definition.
 * @generated Don't change this method manually.
 */
public void updatePalette(String name,EObject eParentObj,Palette eObj,Palette eRefObj,Palette eDefObj,boolean eDefOverride,int axisIndex,int seriesDefIndex){
  if (eObj == null) {
    if (eRefObj != null) {
      eObj=eRefObj.copyInstance();
      ChartElementUtil.setEObjectAttribute(eParentObj,name,eObj,false);
    }
 else     if (eDefOverride && eDefObj != null) {
      eObj=eDefObj.copyInstance();
      ChartElementUtil.setEObjectAttribute(eParentObj,name,eObj,false);
      return;
    }
  }
  if (eObj == null || (eRefObj == null && eDefObj == null)) {
    return;
  }
  if (eObj.getName() == null) {
    if (eRefObj != null && eRefObj.getName() != null) {
      eObj.setName(eRefObj.getName());
    }
 else     if (eDefObj != null && eDefObj.getName() != null) {
      eObj.setName(eDefObj.getName());
    }
  }
  if (eObj.getEntries().size() > 0) {
    return;
  }
  if (eRefObj != null && eRefObj.getEntries().size() > 0) {
    Palette p=eRefObj.copyInstance();
    p.shift((axisIndex + seriesDefIndex) * -1);
    eObj.getEntries().addAll(p.getEntries());
  }
 else   if (eDefObj != null) {
    eObj.getEntries().addAll(ChartElementUtil.copyInstance(eDefObj.getEntries()));
  }
}

Fixed version (ground truth):
/** 
 * Updates chart element Palette.
 * @param eObj chart element object.
 * @param eRefObj reference chart element object.
 * @param eDefObj default chart element object.
 * @param eDefOverride indicates if using default object to override target object if target is null.
 * @param axisIndex index of axis.
 * @param seriesDefIndex index of series definition.
 * @generated Don't change this method manually.
 */
public void updatePalette(String name,EObject eParentObj,Palette eObj,Palette eRefObj,Palette eDefObj,boolean eDefOverride,int axisIndex,int seriesDefIndex){
  if (eObj == null) {
    if (eRefObj != null) {
      eObj=eRefObj.copyInstance();
      ChartElementUtil.setEObjectAttribute(eParentObj,name,eObj,false);
    }
 else     if (eDefOverride && eDefObj != null) {
      eObj=eDefObj.copyInstance();
      ChartElementUtil.setEObjectAttribute(eParentObj,name,eObj,false);
      return;
    }
  }
  if (eObj == null || (eRefObj == null && eDefObj == null)) {
    return;
  }
  if (eObj.getName() == null) {
    if (eRefObj != null && eRefObj.getName() != null) {
      eObj.setName(eRefObj.getName());
    }
 else     if (eDefObj != null && eDefObj.getName() != null) {
      eObj.setName(eDefObj.getName());
    }
  }
  if (eObj.getEntries().size() > 0) {
    return;
  }
  if (eRefObj != null && eRefObj.getEntries().size() > 0) {
    Palette p=eRefObj.copyInstance();
    ChartDefaultValueUtil.shiftPaletteColors(p,(axisIndex + seriesDefIndex) * -1);
    eObj.getEntries().addAll(p.getEntries());
  }
 else   if (eDefObj != null) {
    eObj.getEntries().addAll(ChartElementUtil.copyInstance(eDefObj.getEntries()));
  }
}