Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🀍

Bugfix/fix exception in get asset profile functionality of FMP service (#5663)

Thomas Kaulb61f47085420
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6d0a3c3c01..18204aa0bf 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 e644162585..8bb8f83271 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;
}