From 42c5a1d0e01d4769a80c25d47a823c8a1d82da32 Mon Sep 17 00:00:00 2001 From: Efros Ionelu Date: Tue, 16 Dec 2025 17:01:54 +0200 Subject: [PATCH] hotfix20251216: - fix: 'NoneType' object has no attribute 'lower' --- .../services/data_services/usdm_data_service.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cdisc_rules_engine/services/data_services/usdm_data_service.py b/cdisc_rules_engine/services/data_services/usdm_data_service.py index 3d603a1ed..675f72c02 100644 --- a/cdisc_rules_engine/services/data_services/usdm_data_service.py +++ b/cdisc_rules_engine/services/data_services/usdm_data_service.py @@ -455,6 +455,12 @@ def __get_datasets_content_index(self, dataset_name: str, json) -> List[dict]: dataset_dict = {} for path in metadata: entity = path["entity"] + + if entity is None: + raise ValueError( + f"Invalid metadata: 'entity' is null for path '{path.get('path')}'" + ) + if entity.lower() == "code": entity = "Code" # Do not skip 'null' entities; include them as datasets