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

[BUG] [ALPHA.1] NRE in verified event #206

Closed
Qidan475 opened this issue Nov 27, 2024 · 2 comments · Fixed by #350
Closed

[BUG] [ALPHA.1] NRE in verified event #206

Qidan475 opened this issue Nov 27, 2024 · 2 comments · Fixed by #350

Comments

@Qidan475
Copy link

Describe the bug

[ERROR] [Exiled.Events] Method "OnVerified" of the class "Exiled.Events.Handlers.Internal.Round" caused an exception when handling the event "Exiled.Events.Features.Event`1[[Exiled.Events.EventArgs.Player.VerifiedEventArgs, Exiled.Events, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                                 System.ArgumentNullException: Value cannot be null.
                                 Parameter name: source
                                   at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) [0x0000d] in <1c318258bf0843289b0e2cbe692fee39>:0
                                   at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in <1c318258bf0843289b0e2cbe692fee39>:0
                                   at Exiled.API.Features.Room.get_RoomLightController () [0x00006] in <75906ac0076a470fbd5ba0e0364b79f5>:0
                                   at Exiled.API.Features.Room.get_AreLightsOff () [0x00000] in <75906ac0076a470fbd5ba0e0364b79f5>:0
                                   at Exiled.Events.Handlers.Internal.Round+<>c.<OnVerified>b__6_0 (Exiled.API.Features.Room current) [0x00000] in <cd6b4f9cf109492da3abaaab01bee550>:0
                                   at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x00037] in <1c318258bf0843289b0e2cbe692fee39>:0
                                   at Exiled.Events.Handlers.Internal.Round.OnVerified (Exiled.Events.EventArgs.Player.VerifiedEventArgs ev) [0x0008b] in <cd6b4f9cf109492da3abaaab01bee550>:0
                                   at Exiled.Events.Features.Event`1[T].InvokeNormal (T arg) [0x00028] in <cd6b4f9cf109492da3abaaab01bee550>:0

EXILED Version ("latest" is not a version):
9.0.0-alpha.1

Additional context

@Qidan475
Copy link
Author

Happens because Exiled.API.Features.Room::RoomLightControllers is null for some reason when being called in Exiled.Events.Handlers.Internal.Round::OnVerified. Maybe because of Exiled.Events.Patches.Generic.RoomList transpiler

@louis1706
Copy link

it's now fixed

@github-project-automation github-project-automation bot moved this from Unconfirmed to Done in BugTrack - EXILED9 (14.0) Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants