Fix IncomingMessage requirements.
This commit is contained in:
parent
6e0ae70f02
commit
a9994ef5aa
|
@ -235,7 +235,9 @@ public class MessageController {
|
|||
String destination = null;
|
||||
|
||||
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!");
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ public class IncomingMessage {
|
|||
private int type;
|
||||
|
||||
@JsonProperty
|
||||
@NotEmpty
|
||||
private String destination;
|
||||
|
||||
@JsonProperty
|
||||
|
|
Loading…
Reference in New Issue