Program: 744
Project: 744
Buggy source:
@Override public void initialise(){
  nameText=find("String_Node_Str",UIText.class);
  ownerText=find("String_Node_Str",UIText.class);
  addressText=find("String_Node_Str",UIText.class);
  portText=find("String_Node_Str",UIText.class);
  okButton=find("String_Node_Str",UIButton.class);
  cancelButton=find("String_Node_Str",UIButton.class);
  okButton.subscribe(new ActivateEventListener(){
    @Override public void onActivated(    UIWidget button){
      String name=nameText.getText();
      String owner=ownerText.getText();
      String address=addressText.getText();
      Integer portBoxed=Ints.tryParse(portText.getText());
      int port=(portBoxed != null) ? portBoxed.intValue() : TerasologyConstants.DEFAULT_PORT;
      if (serverInfo == null) {
        serverInfo=new ServerInfo(name,address,port);
        serverInfo.setOwner(owner);
        config.getNetwork().add(serverInfo);
      }
 else {
        serverInfo.setName(name);
        serverInfo.setAddress(address);
        serverInfo.setPort(port);
        serverInfo.setOwner(owner);
      }
      if (successFunc != null) {
        successFunc.accept(serverInfo);
      }
      getManager().popScreen();
    }
  }
);
  okButton.bindEnabled(new ReadOnlyBinding<Boolean>(){
    @Override public Boolean get(){
      return !nameText.getText().isEmpty() && !addressText.getText().isEmpty() && Ints.tryParse(portText.getText()) != null;
    }
  }
);
  cancelButton.subscribe(new ActivateEventListener(){
    @Override public void onActivated(    UIWidget button){
      getManager().popScreen();
    }
  }
);
  nameText.subscribe(new ActivateEventListener(){
    @Override public void onActivated(    UIWidget widget){
      if (addressText.getText().isEmpty()) {
        addressText.setText(nameText.getText());
        addressText.setCursorPosition(addressText.getText().length());
      }
      getManager().setFocus(addressText);
    }
  }
);
  addressText.subscribe(new ActivateEventListener(){
    @Override public void onActivated(    UIWidget widget){
      getManager().setFocus(portText);
    }
  }
);
}

Fixed version (ground truth):
@Override public void initialise(){
  nameText=find("String_Node_Str",UIText.class);
  ownerText=find("String_Node_Str",UIText.class);
  addressText=find("String_Node_Str",UIText.class);
  portText=find("String_Node_Str",UIText.class);
  okButton=find("String_Node_Str",UIButton.class);
  cancelButton=find("String_Node_Str",UIButton.class);
  okButton.subscribe(new ActivateEventListener(){
    @Override public void onActivated(    UIWidget button){
      String name=nameText.getText();
      String owner=ownerText.getText();
      String address=addressText.getText();
      Integer portBoxed=Ints.tryParse(portText.getText());
      int port=(portBoxed != null) ? portBoxed.intValue() : TerasologyConstants.DEFAULT_PORT;
      if (serverInfo == null) {
        serverInfo=new ServerInfo(name,address,port);
        serverInfo.setOwner(owner);
      }
 else {
        serverInfo.setName(name);
        serverInfo.setAddress(address);
        serverInfo.setPort(port);
        serverInfo.setOwner(owner);
      }
      if (successFunc != null) {
        successFunc.accept(serverInfo);
      }
      getManager().popScreen();
    }
  }
);
  okButton.bindEnabled(new ReadOnlyBinding<Boolean>(){
    @Override public Boolean get(){
      return !nameText.getText().isEmpty() && !addressText.getText().isEmpty() && Ints.tryParse(portText.getText()) != null;
    }
  }
);
  cancelButton.subscribe(new ActivateEventListener(){
    @Override public void onActivated(    UIWidget button){
      getManager().popScreen();
    }
  }
);
  nameText.subscribe(new ActivateEventListener(){
    @Override public void onActivated(    UIWidget widget){
      if (addressText.getText().isEmpty()) {
        addressText.setText(nameText.getText());
        addressText.setCursorPosition(addressText.getText().length());
      }
      getManager().setFocus(addressText);
    }
  }
);
  addressText.subscribe(new ActivateEventListener(){
    @Override public void onActivated(    UIWidget widget){
      getManager().setFocus(portText);
    }
  }
);
}