add null obj check in messageDispatcher