Skip to content

fix: skip docx overrides pointing to missing parts (#170)#178

Open
SAY-5 wants to merge 1 commit into
sajari:masterfrom
SAY-5:fix/docx-missing-part-override-170
Open

fix: skip docx overrides pointing to missing parts (#170)#178
SAY-5 wants to merge 1 commit into
sajari:masterfrom
SAY-5:fix/docx-missing-part-override-170

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 3, 2026

Fixes #170.

When a docx declared a content-type override for a PartName that wasn't in the zip archive, the loop in ConvertDocx dereferenced a nil *zip.File and panicked. Now we skip such overrides instead.

Previously panicked with nil pointer dereference when a docx declared
a content-type override for a PartName not present in the zip archive.

Closes sajari#170

Signed-off-by: SAY-5 <saiasish.cnp@gmail.com>
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.

nil pointer dereference

1 participant