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

fix missing acroform font identification #1465

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saionaro
Copy link

@saionaro saionaro commented Oct 5, 2023

What kind of change does this PR introduce?
Bug fix.

Description
When a font is missing in the acroform fonts dict, it is not getting added to it since a condition issue.
A key is missing means its value equals undefined. So that, the strict comparison to null is incorrect.

const wrong = undefined === null; // false
const correct = undefined == null; // true

Checklist:

  • Unit Tests N/A
  • Documentation N/A
  • Update CHANGELOG.md
  • Ready to be merged

undefined !== null but undefined == null
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