Exception in MangaClash listing: RangeError (invalid indexing) #36
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/mangayomi-extensions#36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source information
MangaClash 0.0.85
Source language
English
Steps to reproduce
Expected behavior
The listings' chapters are loaded successfully
Actual behavior
An exception is thrown while loading the listing's chapters:
Mangayomi version
0.1.85
Device
Samsung Galaxy Tab A
Other details
This problem seems to happen because the
madarasource adds to 3 arrays independently ingetDetail:chapUrls,chaptersNamesandchapDates.1e6f245175/manga/multisrc/madara/madara.dart (L184-L186)If those arrays somehow end up with different sizes, then an exception might be thrown later on due to incorrect indexing, presumably around here:
1e6f245175/manga/multisrc/madara/madara.dart (L242)I have refactored that part of the code locally and the problem apparently went away. I'll submit a PR for this later.
Acknowledgements