Skip to content Skip to sidebar Skip to footer

Quickblox Attempt To Invoke Virtual Method Sendmessage On Null Object Reference

i am trying to send text message in private dialog, everything works fine until i create private dialog but when i send text message then i get this error 'Attempt to invoke virtua

Solution 1:

you have to call method sendMessage(..) on 'qbChatDialog' model not 'dialog' or you have to init 'dialog' for chat using dialog.initForChat(QBChatService.getInstance()); before sending message. See QuickBlox documentation


Post a Comment for "Quickblox Attempt To Invoke Virtual Method Sendmessage On Null Object Reference"