Skip to content

ArgumentNullException "rateManager" when application is quitting #2

@renanwolf

Description

@renanwolf

Some times, when the application is quitting, depending on the use case, an ArgumentNullException is thrown when Unity has already destroyed the RateManager GameObject.

ArgumentNullException: Value cannot be null. Parameter name: rateManager

UniRate.RateRequest..ctor (UniRate.RateManager rateManager) (at <00000000000000000000000000000000>:0)
UniRate.RateManager.RequestUpdateRate (System.Int32 updateRate) (at <00000000000000000000000000000000>:0)
*****.SetUpdateRateRequest (System.Boolean enabled) (at <00000000000000000000000000000000>:0)
System.Action`1[T].Invoke (T obj) (at <00000000000000000000000000000000>:0)
*****PropertyRx`1[TValue].OnValueChanged (TValue fromValue, TValue toValue) (at <00000000000000000000000000000000>:0)
*****.ReleaseItems () (at <00000000000000000000000000000000>:0)
*****ComponentBase.OnDisable () (at <00000000000000000000000000000000>:0)
*****LoaderComponent`1[TItem].OnDisable () (at <00000000000000000000000000000000>:0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions