We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04412ca commit 3d40726Copy full SHA for 3d40726
1 file changed
sormas-api/src/main/java/de/symeda/sormas/api/environment/EnvironmentDto.java
@@ -266,10 +266,12 @@ public void setVectorType(VectorType vectorType) {
266
}
267
268
public void addEventReference(EventReferenceDto eventReferenceDto) {
269
- if (eventReferenceDto != null && !eventReferenceDtos.contains(eventReferenceDto)) {
270
- this.eventReferenceDtos.add(eventReferenceDto);
+ if (eventReferenceDto != null) {
+ if (!eventReferenceDtos.contains(eventReferenceDto)) {
271
+ this.eventReferenceDtos.add(eventReferenceDto);
272
+ }
273
} else {
- throw new IllegalArgumentException("event UUID " + eventReferenceDto.getUuid() + " is already added");
274
+ throw new IllegalArgumentException("eventReferenceDto is " + eventReferenceDto);
275
276
277
0 commit comments