Program: 35400
Project: 35400
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override protected void onSaveAction(final ProjectModelDTO currentModel,final AsyncCallback<ProjectModelDTO> callback){
  final String name=view.getNameField().getValue();
  final EnumModel<ProjectModelStatus> statusModel=view.getHeaderStatusField().getValue();
  final ProjectModelStatus status=statusModel != null ? statusModel.getEnum() : null;
  List<ProfileDTO> defaultProfiles=view.getDefaultProfilesComboBox().getListStore().getModels();
  Set<Integer> defaultProfileIds=new HashSet<Integer>();
  for (  ProfileDTO profile : defaultProfiles) {
    defaultProfileIds.add(profile.getId());
  }
  final Map<String,Object> modelProperties=new HashMap<String,Object>();
  modelProperties.put(AdminUtil.ADMIN_PROJECT_MODEL,currentModel);
  modelProperties.put(AdminUtil.PROP_PM_NAME,name);
  modelProperties.put(AdminUtil.PROP_PM_STATUS,status);
  modelProperties.put(AdminUtil.PROP_PM_USE,view.getProjectModelTypeField().getValue());
  modelProperties.put(AdminUtil.PROP_PM_MAINTENANCE_DATE,getMaintenanceDate());
  modelProperties.put(AdminUtil.PROP_PM_DEFAULT_TEAM_MEMBER_PROFILES,defaultProfileIds);
  dispatch.execute(new CreateEntity(ProjectModelDTO.ENTITY_NAME,modelProperties),new CommandResultHandler<CreateResult>(){
    @Override public void onCommandFailure(    final Throwable caught){
      N10N.error(I18N.CONSTANTS.adminProjectModelUpdateBox(),I18N.MESSAGES.adminStandardCreationFailure(I18N.CONSTANTS.adminProjectModelStandard() + "String_Node_Str" + name+ "String_Node_Str"));
      callback.onFailure(caught);
    }
    @Override public void onCommandSuccess(    final CreateResult result){
      if (result == null || result.getEntity() == null) {
        N10N.warn(I18N.CONSTANTS.adminProjectModelUpdateBox(),I18N.MESSAGES.adminStandardCreationNull(I18N.CONSTANTS.adminProjectModelStandard() + "String_Node_Str" + name+ "String_Node_Str"));
        return;
      }
      final ProjectModelDTO updatedModel=(ProjectModelDTO)result.getEntity();
      callback.onSuccess(updatedModel);
      N10N.infoNotif(I18N.CONSTANTS.adminProjectModelUpdateBox(),I18N.MESSAGES.adminStandardUpdateSuccess(I18N.CONSTANTS.adminProjectModelStandard() + "String_Node_Str" + name+ "String_Node_Str"));
    }
  }
,view.getHeaderSaveButton(),new LoadingMask(view.getHeaderForm()));
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override protected void onSaveAction(final ProjectModelDTO currentModel,final AsyncCallback<ProjectModelDTO> callback){
  final String name=view.getNameField().getValue();
  final EnumModel<ProjectModelStatus> statusModel=view.getHeaderStatusField().getValue();
  final ProjectModelStatus status=statusModel != null ? statusModel.getEnum() : null;
  List<ProfileDTO> defaultProfiles=view.getDefaultProfilesComboBox().getListStore().getModels();
  Set<Integer> defaultProfileIds=new HashSet<Integer>();
  for (  ProfileDTO profile : defaultProfiles) {
    defaultProfileIds.add(profile.getId());
  }
  final Map<String,Object> modelProperties=new HashMap<String,Object>();
  modelProperties.put(AdminUtil.ADMIN_PROJECT_MODEL,currentModel);
  modelProperties.put(AdminUtil.PROP_PM_NAME,name);
  modelProperties.put(AdminUtil.PROP_PM_STATUS,status);
  modelProperties.put(AdminUtil.PROP_PM_USE,view.getProjectModelTypeField().getValue());
  modelProperties.put(AdminUtil.PROP_PM_MAINTENANCE_DATE,getMaintenanceDate());
  modelProperties.put(AdminUtil.PROP_PM_DEFAULT_TEAM_MEMBER_PROFILES,defaultProfileIds);
  dispatch.execute(new CreateEntity(ProjectModelDTO.ENTITY_NAME,modelProperties),new CommandResultHandler<CreateResult>(){
    @Override public void onCommandFailure(    final Throwable caught){
      N10N.error(I18N.CONSTANTS.adminProjectModelUpdateBox(),I18N.MESSAGES.adminStandardCreationFailure(I18N.CONSTANTS.adminProjectModelStandard() + "String_Node_Str" + name+ "String_Node_Str"+ caught.getMessage()));
      callback.onFailure(caught);
    }
    @Override public void onCommandSuccess(    final CreateResult result){
      if (result == null || result.getEntity() == null) {
        N10N.warn(I18N.CONSTANTS.adminProjectModelUpdateBox(),I18N.MESSAGES.adminStandardCreationNull(I18N.CONSTANTS.adminProjectModelStandard() + "String_Node_Str" + name+ "String_Node_Str"));
        return;
      }
      final ProjectModelDTO updatedModel=(ProjectModelDTO)result.getEntity();
      callback.onSuccess(updatedModel);
      N10N.infoNotif(I18N.CONSTANTS.adminProjectModelUpdateBox(),I18N.MESSAGES.adminStandardUpdateSuccess(I18N.CONSTANTS.adminProjectModelStandard() + "String_Node_Str" + name+ "String_Node_Str"));
    }
  }
,view.getHeaderSaveButton(),new LoadingMask(view.getHeaderForm()));
}