Fix IncomingMessage requirements.

This commit is contained in:
Moxie Marlinspike
2014-02-03 11:51:22 -08:00
parent 6e0ae70f02
commit a9994ef5aa
2 changed files with 3 additions and 2 deletions

View File

@@ -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!");
}