* =clt #23215 fail with nicer message if PubSubMediator gets null message * Update DistributedPubSubMediator.scala
This commit is contained in:
parent
bb106aa27e
commit
d07df2b917
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue