-
Notifications
You must be signed in to change notification settings - Fork 411
If list is null, it will throw exception. #583
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
Comments
We really need this feature – dart-lang/language#399 I'm worried about the ugly code that will be required without it 😕 |
We can't null coalesce the result to |
Did you try using a default value of a |
Or maybe we just need to wait until null safety lands – it's coming along nicely! |
Thanks for the tip. Can't try it now but I'll reach out again if the issue arises. Can't wait for NNBD! |
Migrating json_serializable to it is going to be a BEAR! I'm looking
forward to it, too
…On Wed, Jun 3, 2020 at 8:04 PM Luke Pighetti ***@***.***> wrote:
Thanks for the tip. Can't try it now but I'll reach out again if the issue
arises. Can't wait for NNBD!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#583 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEFCVQ75UMW5VOG4VQQODRU4FK7ANCNFSM4KBUKGYQ>
.
|
I think this is fixed. Please reopen if not! |
Dart code.
Generated Code.
(json['imageUrls'] as List) may throw Exception if json['imageUrls'] is null.
The text was updated successfully, but these errors were encountered: