Skip to content

Check for null arguments in public methods #19

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

Open
ikkentim opened this issue Mar 2, 2025 · 0 comments
Open

Check for null arguments in public methods #19

ikkentim opened this issue Mar 2, 2025 · 0 comments
Labels
area-core Sampsharp.OpenMp.Core - open.mp API definitions, types and related marshallers area-ecs SampSharp ECS library

Comments

@ikkentim
Copy link
Member

ikkentim commented Mar 2, 2025

With nullable references enabled in all new projects, we should still check for null arguments, since we have no control over user code. Use ArgumentNullException.ThrowIfNull etc. For reference type arguments in all publicly exposed methods in SampSharp.OpenMp.Core and SampSharp.OpenMp.Entities

@ikkentim ikkentim added area-core Sampsharp.OpenMp.Core - open.mp API definitions, types and related marshallers area-ecs SampSharp ECS library labels Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core Sampsharp.OpenMp.Core - open.mp API definitions, types and related marshallers area-ecs SampSharp ECS library
Projects
None yet
Development

No branches or pull requests

1 participant