-
Notifications
You must be signed in to change notification settings - Fork 227
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
Conversation
…g new Texture Page Items or new Embedded Textures. Closes issue UnderminersTeam#1898
There was a problem hiding this 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.
Download the artifacts for this pull request here: GUI:
CLI: |
There was a problem hiding this 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!
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