=clt #23215 fail with nicer message if PubSubMediator gets null message (#23216)

* =clt #23215 fail with nicer message if PubSubMediator gets null message

* Update DistributedPubSubMediator.scala
This commit is contained in:
Konrad `ktoso` Malawski 2017-08-21 02:02:15 +09:00 committed by Patrik Nordwall
parent bb106aa27e
commit d07df2b917

View file

@ -402,6 +402,7 @@ object DistributedPubSubMediator {
*/
def wrapIfNeeded: Any Any = {
case msg: RouterEnvelope MediatorRouterEnvelope(msg)
case null throw InvalidMessageException("Message must not be null")
case msg: Any msg
}
}