Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 540 by
dmarti...@swiftkey.net: fromJson returns null for empty
string
http://code.google.com/p/google-gson/issues/detail?id=540
What steps will reproduce the problem?
public void testCase() {
String json = "";
final Map<String, String> cachedMap = new Gson().fromJson(json, new
TypeToken<Map<String, String>>() {}.getType());
assertNotNull(cachedMap);
}
What is the expected output? What do you see instead?
It probably should throw an exception (JsonParseException or maybe a Syntax
one).
What version of the product are you using? On what operating system?
2.2.4, Ubuntu 12.10 and Android 4.3
Please provide any additional information below.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings