Trying to prevent error #580

Merged
greg6775 merged 1 commit from greg-dev into master 2020-11-19 00:52:17 +01:00

View file

@ -59,11 +59,16 @@ public class Rethink {
try {
return new JSONObject(response);
} catch (JSONException e) {
e.printStackTrace();
System.out.println(response);
insertUser(id);
String response2 = String.valueOf(r.table(table).get(id).toJson().run(conn).first());
try {
return new JSONObject(response2);
} catch (JSONException ex) {
ex.printStackTrace();
return null;
}
}
}
public void insert(String table, Object object) {
try {