This commit is contained in:
Chris Naude 2022-03-19 18:22:28 -07:00
parent c255802154
commit 88bf0a8df8
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,10 @@ public class UpdateChecker {
final BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
final String response = reader.readLine();
final JSONObject obj = (JSONObject) JSONValue.parse(response);
if (obj == null) {
sender.sendMessage(plugin.LOG_HEADER_F + " No files found, or Feed URL is bad.");
return;
}
if (obj.isEmpty()) {
sender.sendMessage(plugin.LOG_HEADER_F + " No files found, or Feed URL is bad.");
return;