NegativeArraySizeException fix
This commit is contained in:
parent
63f9622876
commit
9215d0d3ff
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user