Program: 8267
Project: 8267
Buggy source:
protected void handleActions(Intent intent){
  String action=intent.getAction();
  Bundle extras=intent.getExtras();
  Uri dataUri=intent.getData();
  String scheme=intent.getScheme();
  if (extras == null) {
    extras=new Bundle();
  }
  if (Intent.ACTION_VIEW.equals(action)) {
    if (FacebookKeyserver.isFacebookHost(dataUri)) {
      action=ACTION_IMPORT_KEY_FROM_FACEBOOK;
    }
 else     if ("String_Node_Str".equals(scheme) || "String_Node_Str".equals(scheme)) {
      action=ACTION_SEARCH_KEYSERVER_FROM_URL;
    }
 else {
      action=ACTION_IMPORT_KEY;
    }
  }
  if (action == null) {
    action="String_Node_Str";
  }
switch (action) {
case ACTION_IMPORT_KEY:
{
      if (dataUri != null) {
        startListFragment(null,dataUri,null,null);
      }
 else       if (extras.containsKey(EXTRA_KEY_BYTES)) {
        byte[] importData=extras.getByteArray(EXTRA_KEY_BYTES);
        startListFragment(importData,null,null,null);
      }
 else {
        startTopFileFragment();
        startListFragment(null,null,null,null);
      }
      break;
    }
case ACTION_IMPORT_KEY_FROM_KEYSERVER:
case ACTION_IMPORT_KEY_FROM_KEYSERVER_AND_RETURN_TO_SERVICE:
case ACTION_IMPORT_KEY_FROM_KEYSERVER_AND_RETURN_RESULT:
{
    if (extras.containsKey(EXTRA_QUERY) || extras.containsKey(EXTRA_KEY_ID)) {
      String query=null;
      if (extras.containsKey(EXTRA_QUERY)) {
        query=extras.getString(EXTRA_QUERY);
      }
 else       if (extras.containsKey(EXTRA_KEY_ID)) {
        long keyId=extras.getLong(EXTRA_KEY_ID,0);
        if (keyId != 0) {
          query=KeyFormattingUtils.convertKeyIdToHex(keyId);
        }
      }
      if (query != null && query.length() > 0) {
        startTopCloudFragment(query,false,null);
        startListFragment(null,null,query,null);
      }
 else {
        Log.e(Constants.TAG,"String_Node_Str");
        return;
      }
    }
 else     if (extras.containsKey(EXTRA_FINGERPRINT)) {
      String fingerprint=extras.getString(EXTRA_FINGERPRINT);
      if (isFingerprintValid(fingerprint)) {
        String query="String_Node_Str" + fingerprint;
        startTopCloudFragment(query,true,null);
        startListFragment(null,null,query,null);
      }
    }
 else {
      Log.e(Constants.TAG,"String_Node_Str" + "String_Node_Str");
      return;
    }
    break;
  }
case ACTION_IMPORT_KEY_FROM_FACEBOOK:
{
  String fbUsername=FacebookKeyserver.getUsernameFromUri(dataUri);
  Preferences.CloudSearchPrefs cloudSearchPrefs=new Preferences.CloudSearchPrefs(false,true,true,null);
  startTopCloudFragment(fbUsername,false,cloudSearchPrefs);
  startListFragment(null,null,fbUsername,cloudSearchPrefs);
  break;
}
case ACTION_SEARCH_KEYSERVER_FROM_URL:
{
String query=dataUri.getQueryParameter("String_Node_Str");
if (query == null) {
  Notify.create(this,R.string.import_url_warn_no_search_parameter,Notify.LENGTH_INDEFINITE,Notify.Style.WARN).show();
}
Preferences.CloudSearchPrefs cloudSearchPrefs=new Preferences.CloudSearchPrefs(true,true,true,dataUri.getAuthority());
startTopCloudFragment(query,false,cloudSearchPrefs);
startListFragment(null,null,query,cloudSearchPrefs);
break;
}
case ACTION_IMPORT_KEY_FROM_FILE:
case ACTION_IMPORT_KEY_FROM_FILE_AND_RETURN:
{
startTopFileFragment();
startListFragment(null,null,null,null);
break;
}
default :
{
startTopCloudFragment(null,false,null);
startListFragment(null,null,null,null);
break;
}
}
}

Fixed version (ground truth):
protected void handleActions(@NonNull Intent intent){
  String action=intent.getAction();
  Bundle extras=intent.getExtras();
  Uri dataUri=intent.getData();
  String scheme=intent.getScheme();
  if (extras == null) {
    extras=new Bundle();
  }
  if (Intent.ACTION_VIEW.equals(action)) {
    if (FacebookKeyserver.isFacebookHost(dataUri)) {
      action=ACTION_IMPORT_KEY_FROM_FACEBOOK;
    }
 else     if ("String_Node_Str".equals(scheme) || "String_Node_Str".equals(scheme)) {
      action=ACTION_SEARCH_KEYSERVER_FROM_URL;
    }
 else {
      action=ACTION_IMPORT_KEY;
    }
  }
  if (action == null) {
    action="String_Node_Str";
  }
switch (action) {
case ACTION_IMPORT_KEY:
{
      if (dataUri != null) {
        startListFragment(null,dataUri,null,null);
      }
 else       if (extras.containsKey(EXTRA_KEY_BYTES)) {
        byte[] importData=extras.getByteArray(EXTRA_KEY_BYTES);
        startListFragment(importData,null,null,null);
      }
 else {
        startTopFileFragment();
        startListFragment(null,null,null,null);
      }
      break;
    }
case ACTION_IMPORT_KEY_FROM_KEYSERVER:
case ACTION_IMPORT_KEY_FROM_KEYSERVER_AND_RETURN_TO_SERVICE:
case ACTION_IMPORT_KEY_FROM_KEYSERVER_AND_RETURN_RESULT:
{
    if (extras.containsKey(EXTRA_QUERY) || extras.containsKey(EXTRA_KEY_ID)) {
      String query=null;
      if (extras.containsKey(EXTRA_QUERY)) {
        query=extras.getString(EXTRA_QUERY);
      }
 else       if (extras.containsKey(EXTRA_KEY_ID)) {
        long keyId=extras.getLong(EXTRA_KEY_ID,0);
        if (keyId != 0) {
          query=KeyFormattingUtils.convertKeyIdToHex(keyId);
        }
      }
      if (query != null && query.length() > 0) {
        startTopCloudFragment(query,false,null);
        startListFragment(null,null,query,null);
      }
 else {
        Log.e(Constants.TAG,"String_Node_Str");
        return;
      }
    }
 else     if (extras.containsKey(EXTRA_FINGERPRINT)) {
      String fingerprint=extras.getString(EXTRA_FINGERPRINT);
      if (isFingerprintValid(fingerprint)) {
        String query="String_Node_Str" + fingerprint;
        startTopCloudFragment(query,true,null);
        startListFragment(null,null,query,null);
      }
    }
 else {
      Log.e(Constants.TAG,"String_Node_Str" + "String_Node_Str");
      return;
    }
    break;
  }
case ACTION_IMPORT_KEY_FROM_FACEBOOK:
{
  String fbUsername=FacebookKeyserver.getUsernameFromUri(dataUri);
  Preferences.CloudSearchPrefs cloudSearchPrefs=new Preferences.CloudSearchPrefs(false,true,true,null);
  startTopCloudFragment(fbUsername,false,cloudSearchPrefs);
  startListFragment(null,null,fbUsername,cloudSearchPrefs);
  break;
}
case ACTION_SEARCH_KEYSERVER_FROM_URL:
{
String query=dataUri.getQueryParameter("String_Node_Str");
if (query == null) {
  Notify.create(this,R.string.import_url_warn_no_search_parameter,Notify.LENGTH_INDEFINITE,Notify.Style.WARN).show();
}
Preferences.CloudSearchPrefs cloudSearchPrefs=new Preferences.CloudSearchPrefs(true,true,true,dataUri.getAuthority());
startTopCloudFragment(query,false,cloudSearchPrefs);
startListFragment(null,null,query,cloudSearchPrefs);
break;
}
case ACTION_IMPORT_KEY_FROM_FILE:
case ACTION_IMPORT_KEY_FROM_FILE_AND_RETURN:
{
startTopFileFragment();
startListFragment(null,null,null,null);
break;
}
default :
{
startTopCloudFragment(null,false,null);
startListFragment(null,null,null,null);
break;
}
}
}