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

Localisation-related crash when calling the getDescription method of the MandatoryConstraint class #9

Open
SamueleDassatti opened this issue Jul 4, 2024 · 1 comment
Assignees

Comments

@SamueleDassatti
Copy link

When calling the getDescription method of a MandatoryConstaint instance, the library throws the following exception "_TypeError (Null check operator used on a null value)" at line 74 of the l10n.dart file due to the forms_mandatory string apparently not being localised. This seems to be due to such string being return at line 375 of the forms.dart file.

@SamueleDassatti SamueleDassatti changed the title Localisation-related crash when calling the getDescription method of the MandatoryContraint class Localisation-related crash when calling the getDescription method of the MandatoryConstraint class Jul 4, 2024
@moovida
Copy link
Member

moovida commented Aug 8, 2024

Hi @SamueleDassatti , I sometimes get that issue but have not been able to understand the reason.
It can't be due just to a missing localization in one of the translated languages. In that case the system should fallback to the main language, in this case English.
And if you check the Italian translation against the English vocabulary, than smash should fails most of the times, since there are very few words translated. But it properly falls back to English.
While I am writing this it comes to my mind that maybe it has something to do with the forms only?

Anyways, hints, ideas and suggestions on how to solve this are very welcome. Thanks

@moovida moovida self-assigned this Aug 8, 2024
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

No branches or pull requests

2 participants