Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Bugfix -> Added exception handling for getIpv4
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfacheSache committed Aug 1, 2023
1 parent fcb2976 commit c33c860
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ public RestAPIRequests(Core core) {
}

private String getIpv4() {
return new ResponseManager(rest.callRequest(new Request.Builder().url(ipGetter).build())).getResponseBodyObject().getString("ip");
try {
return new ResponseManager(rest.callRequest(new Request.Builder().url(ipGetter).build())).getResponseBodyObject().getString("ip");
}catch (Exception ignore){}
return null;
}

private JSONArray getNeoIPs() {
Expand Down

0 comments on commit c33c860

Please sign in to comment.