AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.41k stars 288 forks source link

HandleAllInput Null Predicate Fix #657

Closed deanljohnson closed 6 years ago

deanljohnson commented 6 years ago

Summary

The extension method on IAssetImportEnvironment, HandleAllInput, now handles a null predicate. The documentation comment indicates that passing a null predicate should be allowed: "If no predicate is specified, this method will try to handle all available input." but it would instead throw a null reference exception when evaluating a null predicate.