NegativeArraySizeException fix

This commit is contained in:
NewGarbo 2016-01-26 18:40:55 +00:00
parent 63f9622876
commit 9215d0d3ff
1 changed files with 5 additions and 0 deletions

View File

@ -614,6 +614,11 @@ public class UtilText
public static String repeat(String txt, int times)
{
if (times <= 0)
{
return new String();
}
return new String(new byte[times]).replace("\0", txt);
}