Skip to content
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

Fix null pointer exceptions after resuming Unity from iOS #632

Closed

Commits on Oct 22, 2024

  1. Fix null pointer exceptions after resuming Unity from iOS

    Fixes Cysharp#597
    
    Add null reference checks and reinitialize references after resuming Unity to prevent null pointer exceptions in UniTask code snippets.
    
    * **AsyncUniTaskMethodBuilder.cs**
      - Add null reference checks in `SetResult`, `SetException`, `AwaitOnCompleted`, and `AwaitUnsafeOnCompleted` methods.
    * **PlayerLoopRunner.cs**
      - Add code to reinitialize references after resuming in `RunCore` method.
    * **PlayerLoopHelper.cs**
      - Add code to ensure references are not lost after resuming in `AddAction` and `AddContinuation` methods.
    
    ---
    
    For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Cysharp/UniTask/issues/597?shareId=XXXX-XXXX-XXXX-XXXX).
    MarquisMc committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    11d7e8b View commit details
    Browse the repository at this point in the history