365267 NullPointerException in bad Address
This commit is contained in:
parent
de005c68fd
commit
468e6c284d
|
@ -43,6 +43,9 @@ public class Address
|
|||
|
||||
public Address(String host, int port)
|
||||
{
|
||||
if (host == null)
|
||||
throw new IllegalArgumentException("Host is null");
|
||||
|
||||
this.host = host.trim();
|
||||
this.port = port;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue