In Locatable class constructor, “links” must not be null or empty, otherwise error will be triggered.
if (links != null && links.isEmpty()) {
throw new IllegalArgumentException(“empty links”);
}
However, in Locatable subclasses such as Party, Actor, Person, etc., “links” can be null if not specified.
It is also stated in the specification that links will have the optionality of “0…1”.
Is it an error or is intended?
not sure I understand you correctly.
If links is null, the exception would not be thrown.
Only if links is not null but is empty an exception is thrown, which I think is correct?