Program: 91013
Project: 91013
Buggy source:
public ViewAccountModel convert(WalletAccount walletAccount){
  ViewAccountModel result=new ViewAccountModel();
  result.accountId=walletAccount.getId();
  result.drawableForAccount=Utils.getDrawableForAccount(walletAccount,false,resources);
  result.drawableForAccountSelected=Utils.getDrawableForAccount(walletAccount,true,resources);
  WalletAccount linked=Utils.getLinkedAccount(walletAccount,mbwManager.getColuManager().getAccounts().values());
  if (linked != null && linked.getType() == WalletAccount.Type.COLU && ((ColuAccount)linked).getColuAsset().assetType == ColuAccount.ColuAssetType.RMC) {
    result.isRMCLinkedAccount=true;
  }
  result.label=mbwManager.getMetadataStorage().getLabelByAccount(walletAccount.getId());
  if (walletAccount.isActive()) {
    if (walletAccount instanceof Bip44PubOnlyAccount) {
      int numKeys=((Bip44Account)walletAccount).getPrivateKeyCount();
      if (numKeys > 1) {
        result.displayAddress=resources.getString(R.string.contains_addresses,Integer.toString(numKeys));
      }
 else {
        result.displayAddress=resources.getString(R.string.account_contains_one_address_info);
      }
    }
 else     if (walletAccount instanceof Bip44Account) {
      int numKeys=((Bip44Account)walletAccount).getPrivateKeyCount();
      if (numKeys > 1) {
        result.displayAddress=resources.getString(R.string.contains_keys,Integer.toString(numKeys));
      }
 else {
        result.displayAddress=resources.getString(R.string.account_contains_one_key_info);
      }
    }
 else {
      Optional<Address> receivingAddress=walletAccount.getReceivingAddress();
      if (receivingAddress.isPresent()) {
        if (result.label.length() == 0) {
          result.displayAddress=receivingAddress.get().toMultiLineString();
        }
 else {
          result.displayAddress=receivingAddress.get().getShortAddress();
        }
      }
 else {
        result.displayAddress="String_Node_Str";
      }
    }
  }
 else {
    result.displayAddress="String_Node_Str";
  }
  result.isActive=walletAccount.isActive();
  if (result.isActive) {
    result.balance=walletAccount.getCurrencyBasedBalance();
    result.showBackupMissingWarning=showBackupMissingWarning(walletAccount,mbwManager);
  }
  return result;
}

Fixed version (ground truth):
public ViewAccountModel convert(WalletAccount walletAccount){
  ViewAccountModel result=new ViewAccountModel();
  result.accountId=walletAccount.getId();
  result.drawableForAccount=Utils.getDrawableForAccount(walletAccount,false,resources);
  result.drawableForAccountSelected=Utils.getDrawableForAccount(walletAccount,true,resources);
  result.accountType=walletAccount.getType();
  WalletAccount linked=Utils.getLinkedAccount(walletAccount,mbwManager.getColuManager().getAccounts().values());
  if (linked != null && linked.getType() == WalletAccount.Type.COLU && ((ColuAccount)linked).getColuAsset().assetType == ColuAccount.ColuAssetType.RMC) {
    result.isRMCLinkedAccount=true;
  }
  result.label=mbwManager.getMetadataStorage().getLabelByAccount(walletAccount.getId());
  if (walletAccount.isActive()) {
    if (walletAccount instanceof Bip44PubOnlyAccount) {
      int numKeys=((Bip44Account)walletAccount).getPrivateKeyCount();
      if (numKeys > 1) {
        result.displayAddress=resources.getString(R.string.contains_addresses,Integer.toString(numKeys));
      }
 else {
        result.displayAddress=resources.getString(R.string.account_contains_one_address_info);
      }
    }
 else     if (walletAccount instanceof Bip44Account) {
      int numKeys=((Bip44Account)walletAccount).getPrivateKeyCount();
      if (numKeys > 1) {
        result.displayAddress=resources.getString(R.string.contains_keys,Integer.toString(numKeys));
      }
 else {
        result.displayAddress=resources.getString(R.string.account_contains_one_key_info);
      }
    }
 else {
      Optional<Address> receivingAddress=walletAccount.getReceivingAddress();
      if (receivingAddress.isPresent()) {
        if (result.label.length() == 0) {
          result.displayAddress=receivingAddress.get().toMultiLineString();
        }
 else {
          result.displayAddress=receivingAddress.get().getShortAddress();
        }
      }
 else {
        result.displayAddress="String_Node_Str";
      }
    }
  }
 else {
    result.displayAddress="String_Node_Str";
  }
  result.isActive=walletAccount.isActive();
  if (result.isActive) {
    result.balance=walletAccount.getCurrencyBasedBalance();
    result.showBackupMissingWarning=showBackupMissingWarning(walletAccount,mbwManager);
  }
  return result;
}