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

Japx crashes on converting empty lists. #30

Open
vasilich6107 opened this issue May 20, 2024 · 1 comment
Open

Japx crashes on converting empty lists. #30

vasilich6107 opened this issue May 20, 2024 · 1 comment

Comments

@vasilich6107
Copy link

Hi.

final isArrayOfRelationships = array.first is Map<String, dynamic> &&
            _TypeIdPair.from(array.first) != null;

array.first fails on empty array so converting the list of empty entities crashes with Bad state: no element

@trunkovich
Copy link

Hello! We're facing the same problem. Can we expect it to be fixed?

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