From b61f47085420b43f66847643c0d3a8c51a6d1452 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 2 Oct 2025 15:35:12 +0200 Subject: [PATCH] Bugfix/fix exception in get asset profile functionality of FMP service (#5663) * Add missing guard * Update changelog --- CHANGELOG.md | 4 ++++ .../financial-modeling-prep.service.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d0a3c3c0..18204aa0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved the usability of the _Cancel_ / _Close_ buttons in the create watchlist item dialog +### Fixed + +- Handled an exception in the get asset profile functionality of the _Financial Modeling Prep_ service + ## 2.205.0 - 2025-10-01 ### Changed diff --git a/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts b/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts index e64416258..8bb8f8327 100644 --- a/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts +++ b/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts @@ -161,7 +161,7 @@ export class FinancialModelingPrepService implements DataProviderInterface { } ).then((res) => res.json()); - if (etfInformation.website) { + if (etfInformation?.website) { response.url = etfInformation.website; }