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

Add a fallback for pluralRules #566

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

bakhbk
Copy link

@bakhbk bakhbk commented Mar 24, 2023

No description provided.

@bw-flagship
Copy link
Collaborator

@bakhbk What is the problem this PR is solving?

@bakhbk
Copy link
Author

bakhbk commented May 10, 2023

@bakhbk What is the problem this PR is solving?

image

on line 138, an object is expected to be returned. But the "pluralRules" map is missing the required keys. As a result, null is returned instead of an object. Then a crash occurs.

I removed the unsafe call "!", added a default return value.

@bw-flagship
Copy link
Collaborator

@bakhbk I see, this change definitely makes sense, thanks for submitting it! There are two things necessary for this to get merged:

  • The unrelated changes (blank lines, change in pubspec) should be removed
  • There should be at least one Unit test covering this

@bw-flagship bw-flagship changed the title Fix nullable value Add a fallback for pluralRules May 10, 2023
Copy link
Collaborator

@bw-flagship bw-flagship left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The unrelated changes (blank lines, change in pubspec) should be removed
  • There should be at least one Unit test covering this

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.

2 participants