mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 00:38:16 +00:00
null pointer check
This commit is contained in:
@@ -113,12 +113,14 @@ public class ScriptDescription implements Comparable<ScriptDescription> {
|
|||||||
.append(this.category).append(", version: ")
|
.append(this.category).append(", version: ")
|
||||||
.append(this.version).append(", description: ")
|
.append(this.version).append(", description: ")
|
||||||
.append(this.description).append(", servers: ");
|
.append(this.description).append(", servers: ");
|
||||||
|
if(this.servers != null) {
|
||||||
for (int i = 0; i < this.servers.length; i++) {
|
for (int i = 0; i < this.servers.length; i++) {
|
||||||
b.append(this.servers[i]);
|
b.append(this.servers[i]);
|
||||||
if (i < (this.servers.length - 1)) {
|
if (i < (this.servers.length - 1)) {
|
||||||
b.append(" ");
|
b.append(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
b.append(", vip: ")
|
b.append(", vip: ")
|
||||||
.append(this.isVip == null ? "unknown" : this.isVip)
|
.append(this.isVip == null ? "unknown" : this.isVip)
|
||||||
.append(", premium: ")
|
.append(", premium: ")
|
||||||
|
|||||||
Reference in New Issue
Block a user