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

Issue #1898: Prevent NREs when adding new Texture Page Items or Embedded textures #1899

Merged
merged 3 commits into from
Aug 31, 2024

Conversation

Garethp
Copy link
Contributor

@Garethp Garethp commented Aug 30, 2024

Prevent NREs when adding new Texture Page Items or Embedded textures by adding more null checks. Closes issue #1898

Description

As described in issue #1898, attempting to add new Texture Page Items or Embedded Textures results in Null Reference Exceptions being thrown. This MR attempts to mitigate those by adding more null value checks.

Caveats

I didn't immediately see any tests that covered these areas. If I'm missing tests that I should have added, please let me know

Notes

I'm not sure if there are any other NRE's that might be lying about. These only seem to fix the ones that I came across personally

…g new Texture Page Items or new Embedded Textures. Closes issue UnderminersTeam#1898
Copy link
Member

@colinator27 colinator27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I just have a few nitpicks we'll probably want to address to finalize it.

Copy link

github-actions bot commented Aug 30, 2024

Copy link
Contributor

@Miepee Miepee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@Miepee Miepee merged commit 69095cd into UnderminersTeam:master Aug 31, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants