Skip to content

Fix an EntityData NRE in HexColor when Values == null - #1200

Open
oatmealine wants to merge 1 commit into
EverestAPI:devfrom
oatmealine:fix-entitydata-hexcolor-nre
Open

oatmealine wants to merge 1 commit into
EverestAPI:devfrom
oatmealine:fix-entitydata-hexcolor-nre

Conversation

@oatmealine

Copy link
Copy Markdown
Contributor

As title says; if an entity data's Values is null and HexColor is called, the game will NRE on load. This fixes that.

@microlith57 microlith57 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yum

@psyGamer

Copy link
Copy Markdown
Member

Minor nitpick: Those using don't appear to be needed at all? (also evil no-trailing-newline)
But otherwise looking good

@oatmealine

Copy link
Copy Markdown
Contributor Author

I added those while trying something else and forgot to remove them, oops

@oatmealine
oatmealine force-pushed the fix-entitydata-hexcolor-nre branch from 6b228f5 to 31f2c38 Compare November 28, 2026 23:44
@maddie480-bot maddie480-bot added the 1: review needed This PR needs 2 approvals to be merged (bot-managed) label Nov 28, 2026

@psyGamer psyGamer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

:yay:

@SnipUndercover SnipUndercover left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good except for the nonexistent <origdoc/> tag, will approve once this is amended.

EDIT: Turns out this is a "custom" tag handled by MiniInstaller to add the following XML when combining docs:

<summary>
  Vanilla Method. Use <see cref="[everest counterpart method reference]" /> instead.
</summary>

Comment thread Celeste.Mod.mm/Patches/EntityData.cs Resolved
@maddie480-bot

Copy link
Copy Markdown
Member

The pull request was approved and entered the 3-day last-call window.
If no further reviews happen, it will end on Dec 2, 2026, 12:08 AM UTC, after which the pull request will be able to be merged.

@maddie480-bot maddie480-bot added 3: last call window This PR was approved, and is in the 5-day last-call window before getting merged (bot-managed) and removed 1: review needed This PR needs 2 approvals to be merged (bot-managed) labels Nov 29, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3: last call window This PR was approved, and is in the 5-day last-call window before getting merged (bot-managed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants