Skip to content

[BUGFIX] Fix file access in ToolboxController - #2188

Merged
sebastian-meyer merged 2 commits into
kitodo:mainfrom
beatrycze-volk:toolbox-2
Oct 5, 2026
Merged

sebastian-meyer merged 2 commits into
kitodo:mainfrom
beatrycze-volk:toolbox-2

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

Access the currentDocument property directly, removing redundant calls to document->getCurrentDocument(). Add a safety check to ensure the 'files' key exists within physicalStructureInfo before attempting to access it, preventing undefined array key errors.

Access the `currentDocument` property directly, removing redundant calls to `document->getCurrentDocument()`.
Add a safety check to ensure the 'files' key exists within `physicalStructureInfo` before attempting to access it, preventing undefined array key errors.
@beatrycze-volk beatrycze-volk self-assigned this Oct 5, 2026
@beatrycze-volk beatrycze-volk added the ☇ bug A non-security related bug. label Oct 5, 2026
@sebastian-meyer
sebastian-meyer merged commit 08f1321 into kitodo:main Oct 5, 2026
@beatrycze-volk
beatrycze-volk deleted the toolbox-2 branch October 5, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

☇ bug A non-security related bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants