Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lam0620 opened this issue Nov 18, 2024 · 2 comments
Labels
Awaiting Reproduction Can we reproduce the reported bug?

Comments

@lam0620
Copy link
Contributor

lam0620 commented Nov 18, 2024

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

@lam0620 lam0620 added the Awaiting Reproduction Can we reproduce the reported bug? label Nov 18, 2024
Copy link
Member

sedghi commented Nov 18, 2024

"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
Copy link
Contributor Author

lam0620 commented Nov 19, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Reproduction Can we reproduce the reported bug?
Projects
None yet
Development

No branches or pull requests

2 participants