Skip to content

Add a fallback for pluralRules#566

Open
bakhbk wants to merge 3 commits into
aissat:developfrom
bakhbk:develop
Open

Add a fallback for pluralRules#566
bakhbk wants to merge 3 commits into
aissat:developfrom
bakhbk:develop

Conversation

@bakhbk

@bakhbk bakhbk commented Mar 24, 2023

Copy link
Copy Markdown

No description provided.

@bw-flagship

Copy link
Copy Markdown
Collaborator

@bakhbk What is the problem this PR is solving?

@bakhbk

bakhbk commented May 10, 2023

Copy link
Copy Markdown
Author

@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
Copy Markdown
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

@bw-flagship bw-flagship left a comment

Copy link
Copy Markdown
Collaborator

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