Files
MonoGame.Extended/tests/MonoGame.Extended.Tests
Christopher Whitley 1f3f1c5aa0 Fix NullReferenceException in ObjectPool when reusing all returned items (#904)
* Replaced delegate with Action<T>

* Change delegate to Action<T>

* Add unit test to confirm issue

* Fix NullReferenceException in ObjectPool when reusing all returned items

The ObjectPool's Use() method was throwing a NullReferenceException when
all items had been returned to the pool and New() was called again. This
was due to _tailNode being null in this scenario.

Added a null check for _tailNode in Use() method to properly reinitialize
the linked list structure when the pool has been emptied and refilled.
2024-06-29 17:50:43 -04:00
..
2024-06-23 23:10:16 -04:00
2024-06-15 01:37:18 -04:00
2024-06-23 22:38:20 -04:00
2024-05-18 20:01:37 -04:00
2024-05-29 01:32:50 -04:00
2024-06-23 22:49:58 -04:00
2024-05-18 20:01:37 -04:00
2024-05-29 01:32:50 -04:00
2024-06-23 22:49:58 -04:00
2024-06-23 22:38:20 -04:00
2024-05-29 01:32:50 -04:00
2024-05-18 20:01:37 -04:00
2024-06-23 22:49:58 -04:00