Skip to content

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