mirror of https://github.com/zlatinb/muwire
disable translation instead of throwing an Error if the user is on development i2p router build
parent
061a1a88dd
commit
4f626615d8
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue