Skip to content

Commit

Permalink
Fix asset profile crash
Browse files Browse the repository at this point in the history
  • Loading branch information
premnirmal committed Oct 26, 2022
1 parent 15cb28e commit 1599f54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ data class QuoteSummaryResult(

data class QuoteSummary(
@SerializedName("assetProfile")
val assetProfile: AssetProfile,
val assetProfile: AssetProfile?,
@SerializedName("financialData")
val financialData: FinancialData
val financialData: FinancialData?
)

data class AssetProfile(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ class QuoteDetailActivity : BaseGraphActivity<ActivityQuoteDetailBinding>(), Tre
}
quoteSummary?.let {
binding.description.isVisible = true
binding.description.text = it.assetProfile.longBusinessSummary ?: ""
it.assetProfile.website?.let { website ->
binding.description.text = it.assetProfile?.longBusinessSummary ?: ""
it.assetProfile?.website?.let { website ->
binding.website.isVisible = true
binding.website.text = website
binding.website.paintFlags = binding.website.paintFlags or Paint.UNDERLINE_TEXT_FLAG
Expand Down
4 changes: 2 additions & 2 deletions app/version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# this file is purely for f-droid because it cannot infer the version name/code from the git tag
versionName=3.9.814
versionCode=300900814
versionName=3.9.815
versionCode=300900815

0 comments on commit 1599f54

Please sign in to comment.