OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.37k stars 3.39k forks source link

[Bug] Cannot convert undefined or null to object with study has dicom tag (0043,1097) value's element = null #4524

Open lam0620 opened 3 days ago

lam0620 commented 3 days ago

Describe the Bug

Ohif viewer version: 3.9.1. When open a study that has a dicom tag (0043,1097) value as attached, a error occurs: Cannot convert undefined or null to object.

at method: addRetrieveBulkDataNaturalized() of file: extensions\default\src\DicomWebDataSource\index.js

Steps to Reproduce

Open a MR study that has a dicom tag (0043,1097) value as attached image

The current behavior

A error occurs: image

The expected behavior

Can open image viewer correctly

Is it correct if I fix this by check: if (naturalized == null) return; as

      const addRetrieveBulkDataNaturalized = (naturalized, instance = naturalized) => {
        **if (naturalized == null) return;**
        for (const key of Object.keys(naturalized)) {
         ...
        }
    }

OS

Windows 11

Node version

21.7.3

Browser

Chrome

sedghi commented 3 days ago

"Open a MR study that has a dicom tag (0043,1097) value as attached"

Which study? can you share the anonymized study at least?

lam0620 commented 3 days ago

@sedghi Sorry! Please find the attached.

I can view images correctly by load them from local (http://localhost:3000/local) However, The error occurs when I view them with datasource = dcm4chee (upload them to the dcm4chee server and view from ohif viewer)

2.25.268803669544512289201790545152844356528.zip