sanket143 / id3

A cross platform dart package to extract meta data from mp3 files.
https://pub.dev/packages/id3/
MIT License
13 stars 6 forks source link

Unhandled Exception: RangeError (index): Invalid value: Not in inclusive range 0..79: 255 #13

Open duypham312 opened 3 years ago

duypham312 commented 3 years ago

Can you add exception handling to the parseTagsSync() function? If an audio file with empty id3 information is used, I get the following error when calling this function.

Unhandled Exception: RangeError (index): Invalid value: Not in inclusive range 0..79: 255
#0      List.[] (dart:core-patch/array.dart:268:52)
#1      MP3Instance.parseTagsSync (package:id3/id3.dart:293:34)
sanket143 commented 2 years ago

Hi, sorry for the late reply, will it be possible for you to share that file?

duypham312 commented 2 years ago

Of course, this is the file that gives me the error.