Skip to content

fix: error calling .startsWith on null mime_type#1917

Merged
KernelDeimos merged 1 commit intomainfrom
eric/25B52-fix-uiitem-mime
Nov 5, 2025
Merged

fix: error calling .startsWith on null mime_type#1917
KernelDeimos merged 1 commit intomainfrom
eric/25B52-fix-uiitem-mime

Conversation

@KernelDeimos
Copy link
Copy Markdown
Contributor

According to the package documentation: https://www.npmjs.com/package/mime

null is returned in cases where an extension is not detected or recognized

This call to .startsWith() was causing an exception to be thrown upon right-clicking files without an extension, making it impossible to fix them.

According to the package documentation: https://www.npmjs.com/package/mime
> null is returned in cases where an extension is not detected or recognized

This call to `.startsWith()` was causing an exception to be thrown upon
right-clicking files without an extension, making it impossible to fix
them.
@KernelDeimos KernelDeimos merged commit 656a01f into main Nov 5, 2025
6 checks passed
@jelveh jelveh deleted the eric/25B52-fix-uiitem-mime branch May 1, 2026 20:01
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.

1 participant