BoltEngine / Bolt-Tracker

New issue tracker for Photon Bolt
10 stars 2 forks source link

BoltNetwork.CurrentAsyncOperation != null throw exception #156

Closed vladnau89 closed 4 years ago

vladnau89 commented 4 years ago

Describe the bug code if (BoltNetwork.IsRunning && BoltNetwork.CurrentAsyncOperation != null) { } throw exception:

InvalidOperationException: List is empty BoltSingleList1[T].VerifyNotEmpty () (at <91e633532a7e4582a260e897276e2d36>:0) BoltSingleList1[T].get_first () (at <91e633532a7e4582a260e897276e2d36>:0) Bolt.SceneManagement.BoltSceneLoader.get_CurrentAsyncOperation () (at <91e633532a7e4582a260e897276e2d36>:0) BoltInternal.BoltCore.get_currentAsyncOperation () (at <91e633532a7e4582a260e897276e2d36>:0) BoltNetwork.get_CurrentAsyncOperation () (at <91e633532a7e4582a260e897276e2d36>:0)

To Reproduce Steps to reproduce the behavior:

  1. run PhotonLobby example scene
  2. add script to scene with such code

void FixedUpdate() { if (BoltNetwork.IsRunning && BoltNetwork.CurrentAsyncOperation != null) { }

}

  1. click @Join to random room@
  2. See error

InvalidOperationException: List is empty BoltSingleList1[T].VerifyNotEmpty () (at <91e633532a7e4582a260e897276e2d36>:0) BoltSingleList1[T].get_first () (at <91e633532a7e4582a260e897276e2d36>:0) Bolt.SceneManagement.BoltSceneLoader.get_CurrentAsyncOperation () (at <91e633532a7e4582a260e897276e2d36>:0) BoltInternal.BoltCore.get_currentAsyncOperation () (at <91e633532a7e4582a260e897276e2d36>:0) BoltNetwork.get_CurrentAsyncOperation () (at <91e633532a7e4582a260e897276e2d36>:0)

Expected behavior no exception.

Actual behavior BoltNetwork.CurrentAsyncOperation != null return exception

Desktop (If applicable, please complete the following information):

Additional context

ramonmelo commented 4 years ago

Fixed on the next release.

Thanks for your feedback.