Program: 162416
Project: 162416
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View rootView=inflater.inflate(R.layout.fragment_ftp,container,false);
  statusText=rootView.findViewById(R.id.text_view_ftp_status);
  username=rootView.findViewById(R.id.text_view_ftp_username);
  password=rootView.findViewById(R.id.text_view_ftp_password);
  port=rootView.findViewById(R.id.text_view_ftp_port);
  sharedPath=rootView.findViewById(R.id.text_view_ftp_path);
  ftpBtn=rootView.findViewById(R.id.startStopButton);
  View startDividerView=rootView.findViewById(R.id.divider_ftp_start);
  View statusDividerView=rootView.findViewById(R.id.divider_ftp_status);
  ftpPasswordVisibleButton=rootView.findViewById(R.id.ftp_password_visible);
  updateSpans();
  updateStatus();
switch (mainActivity.getAppTheme().getSimpleTheme()) {
case LIGHT:
    startDividerView.setBackgroundColor(Utils.getColor(getContext(),R.color.divider));
  statusDividerView.setBackgroundColor(Utils.getColor(getContext(),R.color.divider));
break;
case DARK:
case BLACK:
startDividerView.setBackgroundColor(Utils.getColor(getContext(),R.color.divider_dark_card));
statusDividerView.setBackgroundColor(Utils.getColor(getContext(),R.color.divider_dark_card));
break;
}
ftpBtn.setOnClickListener(v -> {
if (!FtpService.isRunning()) {
if (FtpService.isConnectedToWifi(getContext()) || FtpService.isConnectedToLocalNetwork(getContext()) || FtpService.isEnabledWifiHotspot(getContext())) startServer();
 else {
statusText.setText(spannedStatusNoConnection);
}
}
 else {
stopServer();
}
}
);
return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View rootView=inflater.inflate(R.layout.fragment_ftp,container,false);
  statusText=rootView.findViewById(R.id.text_view_ftp_status);
  url=rootView.findViewById(R.id.text_view_ftp_url);
  username=rootView.findViewById(R.id.text_view_ftp_username);
  password=rootView.findViewById(R.id.text_view_ftp_password);
  port=rootView.findViewById(R.id.text_view_ftp_port);
  sharedPath=rootView.findViewById(R.id.text_view_ftp_path);
  ftpBtn=rootView.findViewById(R.id.startStopButton);
  View startDividerView=rootView.findViewById(R.id.divider_ftp_start);
  View statusDividerView=rootView.findViewById(R.id.divider_ftp_status);
  ftpPasswordVisibleButton=rootView.findViewById(R.id.ftp_password_visible);
  updateSpans();
  updateStatus();
switch (mainActivity.getAppTheme().getSimpleTheme()) {
case LIGHT:
    startDividerView.setBackgroundColor(Utils.getColor(getContext(),R.color.divider));
  statusDividerView.setBackgroundColor(Utils.getColor(getContext(),R.color.divider));
break;
case DARK:
case BLACK:
startDividerView.setBackgroundColor(Utils.getColor(getContext(),R.color.divider_dark_card));
statusDividerView.setBackgroundColor(Utils.getColor(getContext(),R.color.divider_dark_card));
break;
}
ftpBtn.setOnClickListener(v -> {
if (!FtpService.isRunning()) {
if (FtpService.isConnectedToWifi(getContext()) || FtpService.isConnectedToLocalNetwork(getContext()) || FtpService.isEnabledWifiHotspot(getContext())) startServer();
 else {
statusText.setText(spannedStatusNoConnection);
}
}
 else {
stopServer();
}
}
);
return rootView;
}