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

Add null check for CommandId and update IsDisabled assignment #320

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LTS-FFXIV
Copy link
Contributor

This pull request includes a small change to the Umbra.Game/src/MainMenu/MainMenuItem.cs file. The change ensures that the CommandId is not null before proceeding with further checks in the Update method to prevent game crashes.

Changes in Update method:

  • Added a null check for CommandId to prevent potential null reference exceptions.

Added a null check for CommandId to ensure it is not null before
proceeding with further logic. Modified the IsDisabled assignment
to remove the null-forgiving operator (!) from CommandId since
the null check ensures CommandId is not null.
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.

1 participant