disable translation instead of throwing an Error if the user is on development i2p router build

This commit is contained in:
Zlatin Balevsky
2020-06-05 20:05:03 +01:00
parent 061a1a88dd
commit 4f626615d8

View File

@ -199,7 +199,11 @@ public class Util {
if (!s.equals(tx))
map.put(s, tx);
}
return JSONObject.toJSONString(map);
try {
return JSONObject.toJSONString(map);
} catch (NoClassDefFoundError json2) {
return "{}"; // TODO: upgrade to json-simple 2.x
}
}