Skip to content

Check for null when calling TiffParser.checkHeader()#4429

Open
melissalinkert wants to merge 1 commit into
ome:developfrom
melissalinkert:tiff-checkheader-null
Open

Check for null when calling TiffParser.checkHeader()#4429
melissalinkert wants to merge 1 commit into
ome:developfrom
melissalinkert:tiff-checkheader-null

Conversation

@melissalinkert
Copy link
Copy Markdown
Member

Fixes #4232.

Most calls to checkHeader already check for a null return value, or follow a call to isValidHeader which checks for null itself. In the few remaining cases here, the changes are mostly throwing a more informative exception, or logging an error when that isn't reasonable. checkHeader returning null implies that the TIFF file is invalid, so throwing an exception of some kind is usually appropriate.

This should not be a breaking change, and is not expected to have any impact on tests.

@melissalinkert melissalinkert added this to the 9.0.0 milestone May 13, 2026
@melissalinkert melissalinkert requested a review from sbesson May 13, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NULL being returned for a Boolean object

1 participant