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