| commit | 9ea3975cf296b4781a71e50012d7da9e134385eb | [log] [tgz] |
|---|---|---|
| author | scottb@google.com <scottb@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Tue Apr 15 23:19:01 2008 +0000 |
| committer | scottb@google.com <scottb@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Tue Apr 15 23:19:01 2008 +0000 |
| tree | 9274dd8eafa777784b8f2d076eeb483f33591292 | |
| parent | 629f12e5c7620b007c0914f0d89af0498f0b885d [diff] |
Fixes issue #538; doing a proper string check in JSONParser. Review by: bobv (desk) git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2450 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/json/client/JSONParser.java b/user/src/com/google/gwt/json/client/JSONParser.java index 89c9828..7b5ccd9 100644 --- a/user/src/com/google/gwt/json/client/JSONParser.java +++ b/user/src/com/google/gwt/json/client/JSONParser.java
@@ -44,7 +44,7 @@ if (jsonString == null) { throw new NullPointerException(); } - if (jsonString == "") { + if (jsonString.length() == 0) { throw new IllegalArgumentException("empty argument"); } try {