mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-12-29 03:48:15 +01:00
npe fix
This commit is contained in:
parent
c255802154
commit
88bf0a8df8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user