From c960df2287e2ffe594580c3bb2ba66ac44a72365 Mon Sep 17 00:00:00 2001 From: Woonduk Kang Date: Wed, 6 Nov 2013 05:28:12 +0000 Subject: [PATCH] =?UTF-8?q?[=EA=B0=95=EC=9A=B4=EB=8D=95]=20[LUCYSUS-1744]?= =?UTF-8?q?=20null,=20range=EC=B2=B4=ED=81=AC=20=EA=B0=95=ED=99=94.=20Arra?= =?UTF-8?q?yUtils=EC=97=90=EC=84=9C=20range=EA=B2=BD=EA=B3=84=EC=84=A0?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EB=AC=B8=EC=9E=90=EC=97=B4=20=EB=B6=80?= =?UTF-8?q?=EC=A0=95=ED=99=95=ED=95=98=EA=B2=8C=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=EB=90=98=EB=8A=94=20=EB=B6=80=EB=B6=84=EC=9D=B4=20=EC=9E=88?= =?UTF-8?q?=EC=96=B4=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-profiler-bootstrap/trunk@2802 84d0f5b1-2673-498c-a247-62c4ff18d310 --- src/main/java/com/nhn/pinpoint/profiler/util/StringUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/nhn/pinpoint/profiler/util/StringUtils.java b/src/main/java/com/nhn/pinpoint/profiler/util/StringUtils.java index 0b1fe9f0e..3f29edef9 100644 --- a/src/main/java/com/nhn/pinpoint/profiler/util/StringUtils.java +++ b/src/main/java/com/nhn/pinpoint/profiler/util/StringUtils.java @@ -24,6 +24,9 @@ public final class StringUtils { if (str == null) { return "null"; } + if (length < 0) { + throw new IllegalArgumentException("negative length:" + length); + } if (str.length() > length) { StringBuilder buffer = new StringBuilder(length + 10); buffer.append(str.substring(0, length));