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

[EXILED::Events] Fixed the ChangingRoleAndSpawned.ChangeInventory NullReferenceException skill issue #172

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from

Conversation

FoxWorn3365
Copy link

Description

Fixed the System.NullReferenceException: Object reference not set to an instance of an object that could happen when the method Exiled.Events.Patches.Events.Player.ChangingRoleAndSpawned.ChangeInventory for some reason

What is the current behavior?
The error trigger me >:(

What is the new behavior?
No more error (stonks!)

Does this PR introduce a breaking change?
Nop

Other information:


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

FoxWorn3365 and others added 14 commits September 6, 2024 11:47
Suggestion ExMod-Team#1

Co-authored-by: Alex Rouse <123724383+ALEXWARELLC@users.noreply.github.com>
Co-authored-by: Alex Rouse <123724383+ALEXWARELLC@users.noreply.github.com>
private methods should be defined after public ones
Co-authored-by: Alex Rouse <123724383+ALEXWARELLC@users.noreply.github.com>
Co-authored-by: Alex Rouse <123724383+ALEXWARELLC@users.noreply.github.com>
Co-authored-by: Alex Rouse <123724383+ALEXWARELLC@users.noreply.github.com>
@louis1706
Copy link

This do not fix the issue than the event argument is null

@louis1706 louis1706 added Do not merge Don't merge this PR invalid This doesn't seem right and removed Do not merge Don't merge this PR labels Nov 10, 2024
@FoxWorn3365
Copy link
Author

not an EXILED bug if the function receive a null argument ig

@louis1706
Copy link

not an EXILED bug if the function receive a null argument ig

it's not null argument inside the event it's null event so yes it's exiled bug

@louis1706
Copy link

not an EXILED bug if the function receive a null argument ig

it's not null argument inside the event it's null event so yes it's exiled bug

if (ev == null) should be always useless

@github-actions github-actions bot removed the Events label Nov 18, 2024
@louis1706 louis1706 removed the invalid This doesn't seem right label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants