Program: 103123
Project: 103123
Buggy source:
/** 
 * Loads given registration object.
 * @param accountReg the account registration object that will be loaded.
 */
public void loadAccount(JabberAccountRegistration accountReg){
  accountPanel.setUsername(accountReg.getUserID());
  String password=accountReg.getPassword();
  if (password != null) {
    accountPanel.setPassword(password);
    accountPanel.setRememberPassword(true);
  }
 else {
    accountPanel.setPassword(null);
  }
  String serverAddress=accountReg.getServerAddress();
  accountPanel.showChangePasswordPanel(true);
  connectionPanel.setServerAddress(serverAddress);
  connectionPanel.setClientTlsCertificateId(accountReg.getTlsClientCertificate());
  String serverPort=String.valueOf(accountReg.getServerPort());
  connectionPanel.setServerPort(serverPort);
  connectionPanel.setSendKeepAlive(accountReg.isSendKeepAlive());
  connectionPanel.setGmailNotificationsEnabled(accountReg.isGmailNotificationEnabled());
  connectionPanel.setGoogleContactsEnabled(accountReg.isGoogleContactsEnabled());
  connectionPanel.setResource(accountReg.getResource());
  connectionPanel.setAutogenerateResource(accountReg.isResourceAutogenerated());
  connectionPanel.setPriority(String.valueOf(accountReg.getPriority()));
  connectionPanel.setDTMFMethod(accountReg.getDTMFMethod());
  connectionPanel.setDtmfMinimalToneDuration(accountReg.getDtmfMinimalToneDuration());
  securityPanel.loadAccount(accountReg.getSecurityRegistration());
  iceConfigPanel.setUseIce(accountReg.isUseIce());
  iceConfigPanel.setUseGoogleIce(accountReg.isUseGoogleIce());
  iceConfigPanel.setAutoDiscoverStun(accountReg.isAutoDiscoverStun());
  iceConfigPanel.setUseDefaultStunServer(accountReg.isUseDefaultStunServer());
  List<StunServerDescriptor> stunServers=accountReg.getAdditionalStunServers();
  iceConfigPanel.removeAllStunServer();
  for (  StunServerDescriptor stunServer : stunServers) {
    iceConfigPanel.addStunServer(stunServer);
  }
  iceConfigPanel.setUseJingleNodes(accountReg.isUseJingleNodes());
  iceConfigPanel.setAutoDiscoverJingleNodes(accountReg.isAutoDiscoverJingleNodes());
  iceConfigPanel.removeAllJingleNodes();
  List<JingleNodeDescriptor> jingleNodes=accountReg.getAdditionalJingleNodes();
  for (  JingleNodeDescriptor jingleNode : jingleNodes) {
    iceConfigPanel.addJingleNodes(jingleNode);
  }
  iceConfigPanel.setUseUPNP(accountReg.isUseUPNP());
  connectionPanel.setAllowNonSecure(accountReg.isAllowNonSecure());
  connectionPanel.setServerOverridden(accountReg.isServerOverridden());
  telephonyConfigPanel.setDisableJingle(accountReg.isJingleDisabled());
  telephonyConfigPanel.setTelephonyDomain(accountReg.getOverridePhoneSuffix());
  telephonyConfigPanel.setTelephonyDomainBypassCaps(accountReg.getTelephonyDomainBypassCaps());
  encodingsPanel.loadAccount(accountReg.getEncodingsRegistration());
}

Fixed version (ground truth):
/** 
 * Loads given registration object.
 * @param accountReg the account registration object that will be loaded.
 */
public void loadAccount(JabberAccountRegistration accountReg){
  accountPanel.setUsername(accountReg.getUserID());
  String password=accountReg.getPassword();
  accountPanel.setPassword(password);
  accountPanel.setRememberPassword(password != null);
  String serverAddress=accountReg.getServerAddress();
  accountPanel.showChangePasswordPanel(true);
  connectionPanel.setServerAddress(serverAddress);
  connectionPanel.setClientTlsCertificateId(accountReg.getTlsClientCertificate());
  String serverPort=String.valueOf(accountReg.getServerPort());
  connectionPanel.setServerPort(serverPort);
  connectionPanel.setSendKeepAlive(accountReg.isSendKeepAlive());
  connectionPanel.setGmailNotificationsEnabled(accountReg.isGmailNotificationEnabled());
  connectionPanel.setGoogleContactsEnabled(accountReg.isGoogleContactsEnabled());
  connectionPanel.setResource(accountReg.getResource());
  connectionPanel.setAutogenerateResource(accountReg.isResourceAutogenerated());
  connectionPanel.setPriority(String.valueOf(accountReg.getPriority()));
  connectionPanel.setDTMFMethod(accountReg.getDTMFMethod());
  connectionPanel.setDtmfMinimalToneDuration(accountReg.getDtmfMinimalToneDuration());
  securityPanel.loadAccount(accountReg.getSecurityRegistration());
  iceConfigPanel.setUseIce(accountReg.isUseIce());
  iceConfigPanel.setUseGoogleIce(accountReg.isUseGoogleIce());
  iceConfigPanel.setAutoDiscoverStun(accountReg.isAutoDiscoverStun());
  iceConfigPanel.setUseDefaultStunServer(accountReg.isUseDefaultStunServer());
  List<StunServerDescriptor> stunServers=accountReg.getAdditionalStunServers();
  iceConfigPanel.removeAllStunServer();
  for (  StunServerDescriptor stunServer : stunServers) {
    iceConfigPanel.addStunServer(stunServer);
  }
  iceConfigPanel.setUseJingleNodes(accountReg.isUseJingleNodes());
  iceConfigPanel.setAutoDiscoverJingleNodes(accountReg.isAutoDiscoverJingleNodes());
  iceConfigPanel.removeAllJingleNodes();
  List<JingleNodeDescriptor> jingleNodes=accountReg.getAdditionalJingleNodes();
  for (  JingleNodeDescriptor jingleNode : jingleNodes) {
    iceConfigPanel.addJingleNodes(jingleNode);
  }
  iceConfigPanel.setUseUPNP(accountReg.isUseUPNP());
  connectionPanel.setAllowNonSecure(accountReg.isAllowNonSecure());
  connectionPanel.setServerOverridden(accountReg.isServerOverridden());
  telephonyConfigPanel.setDisableJingle(accountReg.isJingleDisabled());
  telephonyConfigPanel.setTelephonyDomain(accountReg.getOverridePhoneSuffix());
  telephonyConfigPanel.setTelephonyDomainBypassCaps(accountReg.getTelephonyDomainBypassCaps());
  encodingsPanel.loadAccount(accountReg.getEncodingsRegistration());
}