Skip to content
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

fix: dereference of possibly null references in core graphics #2377

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

Arufonsu
Copy link
Contributor

@Arufonsu Arufonsu commented Aug 8, 2024

  • Adds Null Check: RenderingEntities == null checks if RenderingEntities is not initialized.
  • Adds Null Check: Globals.MapGrid == null checks if the 2D array is not initialized.
  • Removes default Check: Globals.MapGrid is an array, checking against default is unnecessary.

image

- Null Check: RenderingEntities == null checks if RenderingEntities is not initialized.
- Null Check: Globals.MapGrid == null checks if the 2D array is not initialized.
- Removed default Check: Globals.MapGrid is an array, checking against default is unnecessary.
@Arufonsu Arufonsu added chore Cleans up code, documentation or project structure without altering functionality bug fix Pull request that fixes a bug labels Aug 8, 2024
@Arufonsu Arufonsu requested a review from a team August 8, 2024 21:15
@WeylonSantana WeylonSantana merged commit b46a210 into main Aug 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Pull request that fixes a bug chore Cleans up code, documentation or project structure without altering functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants