Fix IncomingMessage requirements.

This commit is contained in:
Moxie Marlinspike committed 2014-02-03 11:51:22 -08:00
1 parent 6e0ae70f02
commit a9994ef5aa
2 files changed
+3 -2

No files matched your search

@@ -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