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 {