mirror of
https://github.com/TotalFreedomMC/ZeroTelnetClient.git
synced 2025-01-03 13:58:33 +00:00
Add check to prevent nasty error if no address is entered.
This commit is contained in:
parent
b6322d9dc4
commit
05700c6bba
1 changed files with 6 additions and 0 deletions
|
@ -122,6 +122,12 @@ public class BukkitTelnetClient extends javax.swing.JFrame
|
|||
{
|
||||
String selected_server = (String) txt_server.getSelectedItem();
|
||||
|
||||
if (selected_server == null || selected_server.isEmpty())
|
||||
{
|
||||
System.out.println("Invalid server address.");
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (server_list.contains(selected_server))
|
||||
|
|
Loading…
Reference in a new issue