Skip to content

Commit dd0c169

Browse files
kkolyanstephengold
authored andcommitted
avoid NegativeArraySizeException if input string is "\\#FFF#"
1 parent 32e8b68 commit dd0c169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jme3-core/src/main/java/com/jme3/font/ColorTags.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void setText(final String charSeq) {
7777
}
7878
Matcher m = colorPattern.matcher(charSeq);
7979
if (m.find()) {
80-
StringBuilder builder = new StringBuilder(charSeq.length()-7);
80+
StringBuilder builder = new StringBuilder();
8181
int startIndex = 0;
8282
do {
8383
String colorStr = null;

0 commit comments

Comments
 (0)