Program: 124675
Project: 124675
Buggy source:
@Override public void init(){
  if (isNeedFillDefaults()) {
    fillDefaults();
  }
  EAuthenticationMode authMode=EAuthenticationMode.getAuthenticationByName(getConnection().getAuthMode(),false);
  if (authMode != null) {
    authenticationCombo.setText(authMode.getDisplayName());
  }
 else {
    authenticationCombo.select(0);
  }
  HadoopClusterConnection connection=getConnection();
  namenodeUriText.setText(connection.getNameNodeURI());
  jobtrackerUriText.setText(connection.getJobTrackerURI());
  rmSchedulerText.setText(StringUtils.trimToEmpty(connection.getRmScheduler()));
  jobHistoryText.setText(StringUtils.trimToEmpty(connection.getJobHistory()));
  stagingDirectoryText.setText(StringUtils.trimToEmpty(connection.getStagingDirectory()));
  useDNHostBtn.setSelection(connection.isUseDNHost());
  useCustomConfBtn.setSelection(connection.isUseCustomConfs());
  if (useClouderaNaviBtn != null) {
    useClouderaNaviBtn.setSelection(connection.isUseClouderaNavi());
  }
  kerberosBtn.setSelection(connection.isEnableKerberos());
  namenodePrincipalText.setText(connection.getPrincipal());
  jtOrRmPrincipalText.setText(connection.getJtOrRmPrincipal());
  jobHistoryPrincipalText.setText(connection.getJobHistoryPrincipal());
  keytabBtn.setSelection(connection.isUseKeytab());
  keytabPrincipalText.setText(connection.getKeytabPrincipal());
  keytabText.setText(connection.getKeytab());
  userNameText.setText(connection.getUserName());
  groupText.setText(connection.getGroup());
  maprTBtn.setSelection(connection.isEnableMaprT());
  maprTPasswordText.setText(connection.getMaprTPassword());
  maprTClusterText.setText(connection.getMaprTCluster());
  maprTDurationText.setText(connection.getMaprTDuration());
  setMaprTHomeDirBtn.setSelection(connection.isSetMaprTHomeDir());
  setHadoopLoginBtn.setSelection(connection.isSetHadoopLogin());
  preloadAuthentificationBtn.setSelection(connection.isPreloadAuthentification());
  maprTHomeDirText.setText(connection.getMaprTHomeDir());
  maprTHadoopLoginText.setText(connection.getMaprTHadoopLogin());
  needInitializeContext=true;
  updateStatus(IStatus.OK,EMPTY_STRING);
}

Fixed version (ground truth):
@Override public void init(){
  if (isNeedFillDefaults()) {
    fillDefaults();
  }
  if (isContextMode()) {
    adaptFormToEditable();
  }
  EAuthenticationMode authMode=EAuthenticationMode.getAuthenticationByName(getConnection().getAuthMode(),false);
  if (authMode != null) {
    authenticationCombo.setText(authMode.getDisplayName());
  }
 else {
    authenticationCombo.select(0);
  }
  HadoopClusterConnection connection=getConnection();
  namenodeUriText.setText(connection.getNameNodeURI());
  jobtrackerUriText.setText(connection.getJobTrackerURI());
  rmSchedulerText.setText(StringUtils.trimToEmpty(connection.getRmScheduler()));
  jobHistoryText.setText(StringUtils.trimToEmpty(connection.getJobHistory()));
  stagingDirectoryText.setText(StringUtils.trimToEmpty(connection.getStagingDirectory()));
  useDNHostBtn.setSelection(connection.isUseDNHost());
  useCustomConfBtn.setSelection(connection.isUseCustomConfs());
  if (useClouderaNaviBtn != null) {
    useClouderaNaviBtn.setSelection(connection.isUseClouderaNavi());
  }
  kerberosBtn.setSelection(connection.isEnableKerberos());
  namenodePrincipalText.setText(connection.getPrincipal());
  jtOrRmPrincipalText.setText(connection.getJtOrRmPrincipal());
  jobHistoryPrincipalText.setText(connection.getJobHistoryPrincipal());
  keytabBtn.setSelection(connection.isUseKeytab());
  keytabPrincipalText.setText(connection.getKeytabPrincipal());
  keytabText.setText(connection.getKeytab());
  userNameText.setText(connection.getUserName());
  groupText.setText(connection.getGroup());
  maprTBtn.setSelection(connection.isEnableMaprT());
  maprTPasswordText.setText(connection.getMaprTPassword());
  maprTClusterText.setText(connection.getMaprTCluster());
  maprTDurationText.setText(connection.getMaprTDuration());
  setMaprTHomeDirBtn.setSelection(connection.isSetMaprTHomeDir());
  setHadoopLoginBtn.setSelection(connection.isSetHadoopLogin());
  preloadAuthentificationBtn.setSelection(connection.isPreloadAuthentification());
  maprTHomeDirText.setText(connection.getMaprTHomeDir());
  maprTHadoopLoginText.setText(connection.getMaprTHadoopLogin());
  needInitializeContext=true;
  updateStatus(IStatus.OK,EMPTY_STRING);
}