Skip to content
Snippets Groups Projects
Commit d84dd622 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

MediaGroup: fix StringIndexOutOfBoundsException

parent 735f64e7
No related branches found
No related tags found
No related merge requests found
Pipeline #7220 passed with stage
in 3 minutes and 56 seconds
......@@ -103,7 +103,7 @@ public class MediaGroup extends MediaWrapper {
//Handle titles starting with "The"
int groupOffset = group.startsWith("the") ? 4 : 0;
if (title.startsWith("the"))
if (title.startsWith("the") && title.length() > 4)
title = title.substring(4);
// find common prefix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment