Skip to content
This repository has been archived by the owner on Nov 21, 2021. It is now read-only.

length was called on null #6

Closed
OmarHatem28 opened this issue Mar 20, 2019 · 2 comments
Closed

length was called on null #6

OmarHatem28 opened this issue Mar 20, 2019 · 2 comments

Comments

@OmarHatem28
Copy link

When playing most of the songs, it gives me this exception.

54524246_274313236801992_1105912340227817472_n

When I tried developing a music player app with flutter, I had the same issue but removed it by casting the songs var ( which is returned from await MusicFinder.allSongs(); ) to Song class.

I wanted to suggest that you do the same, but then I tried to remove the casting and stick to ( new List.from(songs); ) as before, and it didn't give me this exception anymore, don't know why.

so now I don't actually know what is causing the exception, but you can try my solution and tell me the results, and your conclusions.

@Aakash-DD
Copy link

Do u get any solution for this??

@avirias
Copy link
Owner

avirias commented Nov 25, 2019

#15

@avirias avirias closed this as completed Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants