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

Unable to catch error "Unhandled Exception: NoSuchMethodError: The method 'decode' was called on null." #34

Open
AhmadFadilB opened this issue Jul 14, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AhmadFadilB
Copy link

Not all the MP3 can be decoded and the console return
[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: NoSuchMethodError: The method 'decode' was called on null. Receiver: null Tried calling: decode(Uint8Array) #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5) #1 ID3V2Reader.parseValues package:dart_tags/…/readers/id3v2.dart:71 #2 Reader.read.<anonymous closure> package:dart_tags/…/readers/reader.dart:13 #3 _rootRunUnary (dart:async/zone.dart:1362:47) <asynchronous suspension>
But the error cannot be catch on try catch or .catchError()
The code just stops at await tp.getTagsFromByteArray(bytes), therefore i can't handle the error.

@AhmadFadilB AhmadFadilB added the bug Something isn't working label Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants