Fix IncomingMessage requirements.
This commit is contained in:
parent
6e0ae70f02
commit
a9994ef5aa
|
@ -235,7 +235,9 @@ public class MessageController {
|
||||||
String destination = null;
|
String destination = null;
|
||||||
|
|
||||||
for (IncomingMessage message : messages) {
|
for (IncomingMessage message : messages) {
|
||||||
if (destination != null && !destination.equals(message.getDestination())) {
|
if ((message.getDestination() == null) ||
|
||||||
|
(destination != null && !destination.equals(message.getDestination())))
|
||||||
|
{
|
||||||
throw new ValidationException("Multiple account destinations!");
|
throw new ValidationException("Multiple account destinations!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ public class IncomingMessage {
|
||||||
private int type;
|
private int type;
|
||||||
|
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
@NotEmpty
|
|
||||||
private String destination;
|
private String destination;
|
||||||
|
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
|
|
Loading…
Reference in New Issue