Found a bug in Photon-Unity3D_v3-2-2-1_SDK

Options
In the file "PhotonClient.cs":

public virtual void Start()
{
this.Peer = new LiteLobbyPeer(this);
this.Connect();
}


If delete the line "this.Connect();" and run, then an exception thrown:

NullReferenceException: Object reference not set to an instance of an object
ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands ()
ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands ()
ExitGames.Client.Photon.PhotonPeer.Service ()
PhotonClient.Update ()


My game will connect server in later operation, so the "Connect" call make no sense.
The old version don't have this problem.

Comments

  • Tobias
    Options
    I am close to releasing a new version, which has a fix for this.
    If you need to work around this quickly, please mail me to developer@exitgames.com and I'll send you a download link for the new dll before release.
  • xiqiang
    Options
    Thanks, I will wait the new version.
    We now rollback to an old version, because the exception still thrown in iOS version(physical device only) even if we add "Connect" call in "Start".