QuickBlox currentSession 始终为空

QuickBlox currentSession is always null

我正在尝试按照 Prepare your application for Android 的说明在我的应用程序中实施 QuickBlox 语音呼叫

错误信息: 尝试在空对象引用

上调用虚拟方法 'void com.quickblox.videochat.webrtc.QBRTCSession.addSessionCallbacksListener(com.quickblox.videochat.webrtc.callbacks.QBRTCSessionConnectionCallbacks)'
  QBChatService.getInstance().getVideoChatWebRTCSignalingManager()
            .addSignalingManagerListener(new QBVideoChatSignalingManagerListener() {
                @Override
                public void signalingCreated(QBSignaling qbSignaling, boolean createdLocally) {
                    if (!createdLocally) {
                        QBRTCClient.getInstance(getApplicationContext()).addSignaling((QBWebRTCSignaling) qbSignaling);
                    }
                }
            });
    WebRtcSessionManager.getInstance(this).getCurrentSession().addSessionCallbacksListener(this);
    WebRtcSessionManager.getInstance(this).getCurrentSession().addVideoTrackCallbacksListener(this);
    QBRTCClient.getInstance(this).addSessionCallbacksListener(this);
    QBRTCClient.getInstance(this).prepareToProcessCalls();

在开始通话之前,您必须先登录聊天 QBChatService.getInstance().login()。所以,检查聊天登录。