Program: 80835
Project: 80835
Buggy source:
/** 
 * Executes the request. This method is called from the WebView thread. To do a non-trivial amount of work, use: cordova.getThreadPool().execute(runnable); To run on the UI thread, use: cordova.getActivity().runOnUiThread(runnable);
 * @param action The action to execute. (Currently "setUntrusted only")
 * @param args The exec() arguments.
 * @param callbackContext The callback context used when calling back into JavaScript.
 * @return Whether the action was valid.
 */
@Override public boolean execute(String action,JSONArray args,CallbackContext callbackContext) throws JSONException {
  if (action.equals("String_Node_Str")) {
    try {
      allowUntrusted=args.getBoolean(0);
      Log.d(LOG_TAG,"String_Node_Str" + allowUntrusted);
      cordova.getActivity().runOnUiThread(new Runnable(){
        public void run(){
          try {
            CordovaActivity ca=(CordovaActivity)cordova.getActivity();
            SystemWebView view=(SystemWebView)webView.getView();
            CertificatesCordovaWebViewClient cWebClient=new CertificatesCordovaWebViewClient((SystemWebViewEngine)webView.getEngine());
            cWebClient.setAllowUntrusted(allowUntrusted);
            webView.clearCache();
            view.setWebViewClient(cWebClient);
          }
 catch (          Exception e) {
            Log.e(LOG_TAG,"String_Node_Str",e);
          }
        }
      }
);
      callbackContext.success();
      return true;
    }
 catch (    Exception e) {
      Log.e(LOG_TAG,"String_Node_Str",e);
    }
  }
  callbackContext.error("String_Node_Str");
  return false;
}

Fixed version (ground truth):
/** 
 * Executes the request. This method is called from the WebView thread. To do a non-trivial amount of work, use: cordova.getThreadPool().execute(runnable); To run on the UI thread, use: cordova.getActivity().runOnUiThread(runnable);
 * @param action The action to execute. (Currently "setUntrusted only")
 * @param args The exec() arguments.
 * @param callbackContext The callback context used when calling back into JavaScript.
 * @return Whether the action was valid.
 */
@Override public boolean execute(String action,JSONArray args,CallbackContext callbackContext) throws JSONException {
  if (action.equals("String_Node_Str")) {
    try {
      allowUntrusted=args.getBoolean(0);
      Log.d(LOG_TAG,"String_Node_Str" + allowUntrusted);
      cordova.getActivity().runOnUiThread(new Runnable(){
        public void run(){
          try {
            CordovaActivity ca=(CordovaActivity)cordova.getActivity();
            SystemWebView view=(SystemWebView)webView.getView();
            CertificatesCordovaWebViewClient cWebClient=new CertificatesCordovaWebViewClient((SystemWebViewEngine)webView.getEngine());
            cWebClient.setAllowUntrusted(allowUntrusted);
            webView.clearCache();
            webView.stopLoading();
            view.setWebViewClient(cWebClient);
          }
 catch (          Exception e) {
            Log.e(LOG_TAG,"String_Node_Str",e);
          }
        }
      }
);
      callbackContext.success();
      return true;
    }
 catch (    Exception e) {
      Log.e(LOG_TAG,"String_Node_Str",e);
    }
  }
  callbackContext.error("String_Node_Str");
  return false;
}