Use class name instead of message when message is null