Error in WebChatUI Module, unable to send message.

I want to implement chat facility in my application, That is why I imported WebChatUI module into my application. But when I am trying to send any messages, it is giving me an error like this. Also I am unable to add user Profiles How to solve this?
1 answers

Looking at the stacktrace the “RecipientAccount” seems to be empty.

If you enable the debugger, you should be able to see why it’s empty and solve the error.