Merge pull request #580 from BigBotNetwork/greg-dev
Trying to prevent error
This commit is contained in:
commit
a334681f06
1 changed files with 8 additions and 3 deletions
|
|
@ -59,11 +59,16 @@ public class Rethink {
|
||||||
try {
|
try {
|
||||||
return new JSONObject(response);
|
return new JSONObject(response);
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
e.printStackTrace();
|
insertUser(id);
|
||||||
System.out.println(response);
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void insert(String table, Object object) {
|
public void insert(String table, Object object) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue