mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-29 23:37:10 +00:00
fixing ArrayIndexOutOfBoundsException for empty "series" name in case of FlexibleLeaderboard
Change-Id: I6986f8921315b248d57cabc449e40adb1ea95eab
This commit is contained in:
1 parent
2061bc9842
commit
5b895d1d60
1 file changed
+5
-1
+5
-1
@@ -101,7 +101,11 @@ public class MultiRegattaListStepsBody extends UIObject implements RequiresResiz
|
||||
String[] tokens = seriesName.split(" ");
|
||||
StringBuilder initials = new StringBuilder();
|
||||
for (int i = 0; i < tokens.length; i++) {
|
||||
initials.append(tokens[i].charAt(0));
|
||||
if (tokens[i].isEmpty()) {
|
||||
initials.append('R');
|
||||
} else {
|
||||
initials.append(tokens[i].charAt(0));
|
||||
}
|
||||
}
|
||||
return initials.toString();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user