Program: 13929
Project: 13929
Buggy source:
public void handleDiscoveryError(DiscoveryError error,final String failedEndpoint){
  AppLog.e(T.API,"String_Node_Str" + error);
  endProgress();
  if (!isAdded()) {
    return;
  }
switch (error) {
case ERRONEOUS_SSL_CERTIFICATE:
    SelfSignedSSLUtils.showSSLWarningDialog(getActivity(),mMemorizingTrustManager,new Callback(){
      @Override public void certificateTrusted(){
        if (failedEndpoint == null) {
          return;
        }
        startProgress(getString(R.string.signing_in));
        mDispatcher.dispatch(AuthenticationActionBuilder.newDiscoverEndpointAction(failedEndpoint));
      }
    }
);
  break;
case HTTP_AUTH_REQUIRED:
askForHttpAuthCredentials(failedEndpoint);
break;
case WORDPRESS_COM_SITE:
signInAndFetchBlogListWPCom();
break;
case NO_SITE_ERROR:
showGenericErrorDialog(getResources().getString(R.string.no_site_error),NO_SITE_HELPSHIFT_FAQ_ID,NO_SITE_HELPSHIFT_FAQ_SECTION);
break;
case INVALID_URL:
showUrlError(R.string.invalid_site_url_message);
break;
case MISSING_XMLRPC_METHOD:
showGenericErrorDialog(getResources().getString(R.string.xmlrpc_missing_method_error),MISSING_XMLRPC_METHOD_HELPSHIFT_FAQ_ID,MISSING_XMLRPC_METHOD_HELPSHIFT_FAQ_SECTION);
break;
case XMLRPC_BLOCKED:
showGenericErrorDialog(getResources().getString(R.string.xmlrpc_post_blocked_error),XMLRPC_BLOCKED_HELPSHIFT_FAQ_ID,XMLRPC_BLOCKED_HELPSHIFT_FAQ_SECTION);
break;
case XMLRPC_FORBIDDEN:
showGenericErrorDialog(getResources().getString(R.string.xmlrpc_endpoint_forbidden_error),XMLRPC_BLOCKED_HELPSHIFT_FAQ_ID,XMLRPC_BLOCKED_HELPSHIFT_FAQ_SECTION);
break;
case GENERIC_ERROR:
default :
showGenericErrorDialog(getResources().getString(R.string.nux_cannot_log_in));
break;
}
}

Fixed version (ground truth):
public void handleDiscoveryError(DiscoveryError error,final String failedEndpoint){
  AppLog.e(T.API,"String_Node_Str" + error);
  endProgress();
  if (!isAdded()) {
    return;
  }
switch (error) {
case ERRONEOUS_SSL_CERTIFICATE:
    SelfSignedSSLUtils.showSSLWarningDialog(getActivity(),mMemorizingTrustManager,new Callback(){
      @Override public void certificateTrusted(){
        if (failedEndpoint == null) {
          return;
        }
        startProgress(getString(R.string.signing_in));
        mDispatcher.dispatch(AuthenticationActionBuilder.newDiscoverEndpointAction(failedEndpoint));
      }
    }
);
  break;
case HTTP_AUTH_REQUIRED:
askForHttpAuthCredentials(failedEndpoint);
break;
case WORDPRESS_COM_SITE:
signInAndFetchBlogListWPCom();
break;
case NO_SITE_ERROR:
showGenericErrorDialog(getResources().getString(R.string.no_site_error),NO_SITE_HELPSHIFT_FAQ_ID,NO_SITE_HELPSHIFT_FAQ_SECTION);
break;
case INVALID_URL:
showUrlError(R.string.invalid_site_url_message);
AnalyticsTracker.track(Stat.LOGIN_INSERTED_INVALID_URL);
break;
case MISSING_XMLRPC_METHOD:
showGenericErrorDialog(getResources().getString(R.string.xmlrpc_missing_method_error),MISSING_XMLRPC_METHOD_HELPSHIFT_FAQ_ID,MISSING_XMLRPC_METHOD_HELPSHIFT_FAQ_SECTION);
break;
case XMLRPC_BLOCKED:
showGenericErrorDialog(getResources().getString(R.string.xmlrpc_post_blocked_error),XMLRPC_BLOCKED_HELPSHIFT_FAQ_ID,XMLRPC_BLOCKED_HELPSHIFT_FAQ_SECTION);
break;
case XMLRPC_FORBIDDEN:
showGenericErrorDialog(getResources().getString(R.string.xmlrpc_endpoint_forbidden_error),XMLRPC_BLOCKED_HELPSHIFT_FAQ_ID,XMLRPC_BLOCKED_HELPSHIFT_FAQ_SECTION);
break;
case GENERIC_ERROR:
default :
showGenericErrorDialog(getResources().getString(R.string.nux_cannot_log_in));
break;
}
}