Skip to content

object reference not set to an instance of an object , agora forms #30

Description

@usmanrwp

AgoraService not initialize _agoraService object , on the next line _agoraService.JoinChannelSuccess it gives exception object reference not set to an instance of an object because AgoraService.Current not initialize the object it remains null

public void Init()
{
_isEnded = false;
if (_agoraService == null)
{
_agoraService = AgoraService.Current;
_agoraService.JoinChannelSuccess += (uid) => { };
_agoraService.OnDisconn
Screenshot 2021-07-25 at 2 41 08 AM
ected += OnDisconnected;
_agoraService.OnNewStream += OnNewStream;
_agoraService.StartSession(Room, Consts.AgoraAPI, Consts.Token, webSdkInteroperability: true);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions