Skip to content

Fix NRE when ReactionCollectRequest is disposed more than once

Mateusz Brawański requested to merge github/fork/uwx/patch-139 into master

Created by: uwx

Summary

Fixes a NRE when ReactionCollectRequest is disposed more than once. A type in C# must never throw when disposing it more than once.

Details

This issue is caused by calling Clear on _collected, which is set to null the first time the object is disposed.

Changes proposed

  • Add a null-check to this._collected.Clear();

Notes

This issue was reported by Sakray#1428 on Discord.

Merge request reports

Loading