Skip to content

fix: player prefab null exception when using prefab hash via connection approval #3042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Sep 3, 2024

This PR resolves the issue where if you do not have a player prefab assigned but do have prefab hash provided in the connection approval process it would cause and exception to be thrown (due to the lack of the player prefab assignment).
(needs to be backported to v1.x)

fix: #3032

Changelog

  • Fixed: Issue where setting a prefab hash value during connection approval but not having a player prefab assigned could cause an exception when spawning a player.

Testing and Documentation

  • Includes integration test updates to ConnectionApproval.
  • No documentation changes or additions were necessary.

fixing the issue where setting the prefab hash but not assigning a player prefab would cause an exception.
change log entry
Updating the ConnectionApproval test to include spawning from player prefab, prefab hash, spawning no player, and failing validation.
updating changelog with PR number.
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review September 3, 2024 15:25
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner September 3, 2024 15:25
NoelStephensUnity added a commit that referenced this pull request Sep 6, 2024
…proval (backport-3042) (#3046)

* fix

back port of #3042 fix

* test

Test updates to validate the fix.

* update

adding changelog entry
@NoelStephensUnity NoelStephensUnity merged commit c0cd658 into develop-2.0.0 Sep 6, 2024
24 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/player-prefab-null-exception-when-using-prefabhash-connection-approval branch September 6, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants