Backed out changeset 46b4833e84c3 (bug 776027)
This commit is contained in:
@@ -57,11 +57,11 @@ public final class JSONUtils {
|
||||
}
|
||||
|
||||
public static JSONObject bundleToJSON(Bundle bundle) {
|
||||
if (bundle == null || bundle.isEmpty()) {
|
||||
return null;
|
||||
JSONObject json = new JSONObject();
|
||||
if (bundle == null) {
|
||||
return json;
|
||||
}
|
||||
|
||||
JSONObject json = new JSONObject();
|
||||
for (String key : bundle.keySet()) {
|
||||
try {
|
||||
json.put(key, bundle.get(key));
|
||||
|
||||
Reference in New Issue
Block a user