Program: 118796
Project: 118796
Buggy source:
@Override public void addPages(){
  ERepositoryObjectType repObjType=(ERepositoryObjectType)repNode.getProperties(EProperties.CONTENT_TYPE);
  String typeName=repObjType.getType();
  setWindowTitle(typeName);
  Image wiardImage=wizardService.getWiardImage(typeName);
  setDefaultPageImageDescriptor(ImageDescriptor.createFromImage(wiardImage));
  ((GenericConnectionItem)connectionItem).setTypeName(typeName);
  IGenericWizardInternalService internalService=new GenericWizardInternalService();
  ComponentWizard componentWizard=null;
  if (creation) {
    componentWizard=internalService.getComponentWizard(typeName,connectionProperty.getId());
  }
 else {
    String compPropertiesStr=connection.getCompProperties();
    if (compPropertiesStr != null) {
      Deserialized fromSerialized=ComponentProperties.fromSerialized(compPropertiesStr);
      if (fromSerialized != null) {
        componentWizard=internalService.getTopLevelComponentWizard(fromSerialized.properties,repNode.getId());
      }
    }
  }
  if (componentWizard == null) {
    return;
  }
  List<Form> forms=componentWizard.getForms();
  for (  Form form : forms) {
    ComponentProperties properties=form.getProperties();
    Form rightForm=properties.getForm(form.getName());
    if (rightForm != form) {
      form=rightForm;
    }
    wizPage=new GenericConnWizardPage(connectionItem,isRepositoryObjectEditable(),existingNames,creation,form,compService);
    if (wizPage != null) {
      wizPage.setTitle(form.getTitle());
      wizPage.setDescription(form.getSubtitle());
      if (creation) {
        wizPage.setPageComplete(false);
      }
 else {
        wizPage.setPageComplete(isRepositoryObjectEditable());
      }
    }
    addPage(wizPage);
  }
}

Fixed version (ground truth):
@Override public void addPages(){
  ERepositoryObjectType repObjType=(ERepositoryObjectType)repNode.getProperties(EProperties.CONTENT_TYPE);
  String typeName=repObjType.getType();
  setWindowTitle(typeName);
  Image wiardImage=wizardService.getWiardImage(typeName);
  setDefaultPageImageDescriptor(ImageDescriptor.createFromImage(wiardImage));
  ((GenericConnectionItem)connectionItem).setTypeName(typeName);
  IGenericWizardInternalService internalService=new GenericWizardInternalService();
  ComponentWizard componentWizard=null;
  if (creation) {
    componentWizard=internalService.getComponentWizard(typeName,connectionProperty.getId());
  }
 else {
    String compPropertiesStr=connection.getCompProperties();
    if (compPropertiesStr != null) {
      Deserialized fromSerialized=ComponentProperties.fromSerialized(compPropertiesStr);
      if (fromSerialized != null) {
        componentWizard=internalService.getTopLevelComponentWizard(fromSerialized.properties,repNode.getId());
      }
    }
  }
  if (componentWizard == null) {
    return;
  }
  List<Form> forms=componentWizard.getForms();
  for (  Form form : forms) {
    ComponentProperties properties=form.getComponentProperties();
    Form rightForm=properties.getForm(form.getName());
    if (rightForm != form) {
      form=rightForm;
    }
    wizPage=new GenericConnWizardPage(connectionItem,isRepositoryObjectEditable(),existingNames,creation,form,compService);
    if (wizPage != null) {
      wizPage.setTitle(form.getTitle());
      wizPage.setDescription(form.getSubtitle());
      if (creation) {
        wizPage.setPageComplete(false);
      }
 else {
        wizPage.setPageComplete(isRepositoryObjectEditable());
      }
    }
    addPage(wizPage);
  }
}