Fix NPE
This commit is contained in:
@@ -35,14 +35,14 @@ public class Updater extends PlayerVaults {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getUpdate() throws IOException {
|
public boolean getUpdate(String v) throws IOException {
|
||||||
JSONObject json;
|
JSONObject json;
|
||||||
try {
|
try {
|
||||||
json = getInfo();
|
json = getInfo();
|
||||||
String version = json.getString("dbo_version");
|
String version = json.getString("dbo_version");
|
||||||
String link = json.getString("link");
|
String link = json.getString("link");
|
||||||
PlayerVaults.LINK = link;
|
PlayerVaults.LINK = link;
|
||||||
if(!version.equalsIgnoreCase(super.getDescription().getVersion())) {
|
if(!version.equalsIgnoreCase(v)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch(JSONException e) {
|
} catch(JSONException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user