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

Invalid argument null with type Null #1125

Open
bsutton opened this issue Aug 17, 2024 · 4 comments
Open

Invalid argument null with type Null #1125

bsutton opened this issue Aug 17, 2024 · 4 comments

Comments

@bsutton
Copy link

bsutton commented Aug 17, 2024

When I start my system sqflite is reporting:

Invalid argument null with type Null.
Only num, String and Uint8List are supported. See https://github.com/tekartik/sqflite/blob/master/sqflite/doc/supported_types.md for details

This will throw an exception in the future. For now it is displayed once per type.

I would love to fix this but no contextual information is provided that might help me to track down what entity is causing the problem.

The system needs to include the entire map that is being process or at least the entity name so that you can find the source of the issue. A stack trace would also be useful.

alextekartik added a commit that referenced this issue Aug 17, 2024
@alextekartik
Copy link
Contributor

I have added the print of the stack trace in sqflite_common: 2.5.4+2 just published

@bsutton
Copy link
Author

bsutton commented Aug 17, 2024 via email

@bsutton
Copy link
Author

bsutton commented Aug 20, 2024 via email

@alextekartik
Copy link
Contributor

Weird has the change is minimal: 7867d39
Since it happens when an argument is null (so requires to check anywhere that could happen which can be painful) maybe the context has changed...
Good luck in reproducing!

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