mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
NPE fix for getRandoms
This commit is contained in:
@@ -154,7 +154,11 @@ public class ServerProviderInfo {
|
|||||||
|
|
||||||
public URL getRandoms() {
|
public URL getRandoms() {
|
||||||
try {
|
try {
|
||||||
return new URL(properties.getProperty("randoms_jar"));
|
String randomsUrl = properties.getProperty("randoms_jar");
|
||||||
|
if (randomsUrl == null || randomsUrl.length() == 0) {
|
||||||
|
randomsUrl = Configuration.GET_RANDOMS + (Configuration.BOT_VERSION.isNightly() ? Configuration.NIGHTLY_APPEND : "");
|
||||||
|
}
|
||||||
|
return new URL(randomsUrl);
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user