mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Check that author and group names aren't empty.
This commit is contained in:
@@ -10,7 +10,7 @@ public class TransportId {
|
||||
private final String id;
|
||||
|
||||
public TransportId(String id) {
|
||||
if(id.length() > MAX_TRANSPORT_ID_LENGTH || id.equals(""))
|
||||
if(id.length() == 0 || id.length() > MAX_TRANSPORT_ID_LENGTH)
|
||||
throw new IllegalArgumentException();
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user