mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-10-01 10:27:24 +00:00
NPE Fix
This commit is contained in:
@@ -85,6 +85,7 @@ public class ServerSelector extends JPanel {
|
||||
}
|
||||
}
|
||||
|
||||
if (initServer != null) {
|
||||
final String serverName = initServer.toLowerCase(); // match the pre-requested server name to quick-launch
|
||||
for (ServerComponent widget : widgets) {
|
||||
if (widget.desc.getServerName().toLowerCase().equals(serverName)) {
|
||||
@@ -92,6 +93,7 @@ public class ServerSelector extends JPanel {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user