Check that author and group names aren't empty.

This commit is contained in:
akwizgran
2014-01-31 17:23:14 +00:00
parent 93890d56f6
commit cde4ca574f
9 changed files with 26 additions and 9 deletions

View File

@@ -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;
}