Program: 129102
Project: 129102
Buggy source:
public PropertiesWizard(IRepositoryViewObject repositoryViewObject,IPath path,boolean useLastVersion){
  super();
  setDefaultPageImageDescriptor(ImageProvider.getImageDesc(EImage.PROPERTIES_WIZ));
  if (repositoryViewObject != null && repositoryViewObject.getProperty() != null) {
    this.object=new RepositoryObject(repositoryViewObject.getProperty());
    Property property=object.getProperty();
    Item item=property.getItem();
    if (property.eResource() == null || item != null && item.eContainer() == null) {
      if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
        IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
        IProxyRepositoryFactory factory=service.getProxyRepositoryFactory();
        try {
          ItemState state=item.getState();
          if (state != null) {
            boolean haveLock=state.isLocked();
            if (haveLock) {
              isLock=true;
            }
          }
          if (useLastVersion) {
            if (state != null && state.getPath() != null) {
              this.object=(IRepositoryObject)factory.getLastVersion(new Project(ProjectManager.getInstance().getProject(item)),property.getId(),state.getPath(),object.getRepositoryObjectType());
              lastVersionFound=this.object.getVersion();
            }
 else {
              this.object=(IRepositoryObject)factory.getLastVersion(new Project(ProjectManager.getInstance().getProject(item)),property.getId());
              lastVersionFound=this.object.getVersion();
            }
          }
 else {
            if (state != null && state.getPath() != null) {
              this.lastVersionFound=factory.getLastVersion(new Project(ProjectManager.getInstance().getProject(item)),property.getId(),state.getPath(),object.getRepositoryObjectType()).getVersion();
            }
 else {
              this.lastVersionFound=factory.getLastVersion(new Project(ProjectManager.getInstance().getProject(item)),property.getId()).getVersion();
            }
            this.object.setProperty(factory.getUptodateProperty(property));
          }
        }
 catch (        PersistenceException e) {
          ExceptionHandler.process(e);
        }
      }
    }
  }
  if (this.object == null) {
    this.object=new RepositoryObject(repositoryViewObject.getProperty());
  }
  this.originaleObjectLabel=this.object.getLabel();
  this.originalVersion=this.object.getVersion();
  this.originalDescription=this.object.getDescription();
  this.originalPurpose=this.object.getPurpose();
  this.originalStatus=this.object.getStatusCode();
  this.path=path;
  lockObject();
}

Fixed version (ground truth):
public PropertiesWizard(IRepositoryViewObject repositoryViewObject,IPath path,boolean useLastVersion){
  super();
  setDefaultPageImageDescriptor(ImageProvider.getImageDesc(EImage.PROPERTIES_WIZ));
  if (repositoryViewObject != null && repositoryViewObject.getProperty() != null) {
    this.object=new RepositoryObject(repositoryViewObject.getProperty());
    Property property=object.getProperty();
    Item item=property.getItem();
    if (property.eResource() == null || item != null && item.eContainer() == null) {
      if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
        IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
        IProxyRepositoryFactory factory=service.getProxyRepositoryFactory();
        try {
          ItemState state=item.getState();
          if (useLastVersion) {
            if (state != null && state.getPath() != null) {
              this.object=(IRepositoryObject)factory.getLastVersion(new Project(ProjectManager.getInstance().getProject(item)),property.getId(),state.getPath(),object.getRepositoryObjectType());
              lastVersionFound=this.object.getVersion();
            }
 else {
              this.object=(IRepositoryObject)factory.getLastVersion(new Project(ProjectManager.getInstance().getProject(item)),property.getId());
              lastVersionFound=this.object.getVersion();
            }
          }
 else {
            if (state != null && state.getPath() != null) {
              this.lastVersionFound=factory.getLastVersion(new Project(ProjectManager.getInstance().getProject(item)),property.getId(),state.getPath(),object.getRepositoryObjectType()).getVersion();
            }
 else {
              this.lastVersionFound=factory.getLastVersion(new Project(ProjectManager.getInstance().getProject(item)),property.getId()).getVersion();
            }
            this.object.setProperty(factory.getUptodateProperty(property));
          }
        }
 catch (        PersistenceException e) {
          ExceptionHandler.process(e);
        }
      }
    }
  }
  if (this.object == null) {
    this.object=new RepositoryObject(repositoryViewObject.getProperty());
  }
  this.originaleObjectLabel=this.object.getLabel();
  this.originalVersion=this.object.getVersion();
  this.originalDescription=this.object.getDescription();
  this.originalPurpose=this.object.getPurpose();
  this.originalStatus=this.object.getStatusCode();
  this.path=path;
  lockObject();
}