throw exception when you create or update null message.