Merge pull request #2483 from medici/bugFix

Crash Fix
This commit is contained in:
rahul bhat
2022-02-15 18:45:00 +05:30
committed by GitHub Enterprise
2 changed files with 2 additions and 2 deletions

View File

@@ -248,7 +248,7 @@ class AccountAggregatorFragment : BaseFragment(), FooterInteractionListener, Bac
override fun onFailure(onemoneyError: OnemoneyError) {
hideLoader()
val oneMoneyErrorResponseString =
onemoneyError.errorResponse.replace("'", "\"").replace(ERROR, "")
onemoneyError.errorResponse?.replace("'", "\"")?.replace(ERROR, "")
if (::gson.isInitialized.not()) {
gson = Gson()
}

View File

@@ -379,7 +379,7 @@ class BankStatementFragment : BaseFragment(), FooterWithTextInteractionListener,
val selectBankFragment =
childFragmentManager.findFragmentByTag(SelectBankFragment.TAG) as? SelectBankFragment
selectedBank = bank
selectBankFragment?.dismiss()
selectBankFragment?.safelyDismissDialog()
binding.bankNameLayout.bankActv.setText(bank.name)
binding.bankNameLayout.bankActv.error = null
binding.optionView.visibility = View.VISIBLE