File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
sormas-api/src/main/java/de/symeda/sormas/api/environment Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -266,10 +266,12 @@ public void setVectorType(VectorType vectorType) {
266
266
}
267
267
268
268
public void addEventReference (EventReferenceDto eventReferenceDto ) {
269
- if (eventReferenceDto != null && !eventReferenceDtos .contains (eventReferenceDto )) {
270
- this .eventReferenceDtos .add (eventReferenceDto );
269
+ if (eventReferenceDto != null ) {
270
+ if (!eventReferenceDtos .contains (eventReferenceDto )) {
271
+ this .eventReferenceDtos .add (eventReferenceDto );
272
+ }
271
273
} else {
272
- throw new IllegalArgumentException ("event UUID " + eventReferenceDto . getUuid () + " is already added" );
274
+ throw new IllegalArgumentException ("eventReferenceDto is " + eventReferenceDto );
273
275
}
274
276
}
275
277
You can’t perform that action at this time.
0 commit comments