Skip to content

SCP-714 null reference spam #91

@Artyomus1337

Description

@Artyomus1337

Describe the bug
When someone equips SCP-714, it spams Null reference excpetion.

[2022-06-12 14:51:22.757 +00:00] [ERROR] [Exiled.API] Method "OnHurting" of the class "CustomItems.Items.Scp714" caused an exception when handling the event "Exiled.Events.Events+CustomEventHandler1[[Exiled.Events.EventArgs.HurtingEventArgs, Exiled.Events, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null]]" [2022-06-12 14:51:22.770 +00:00] [ERROR] [Exiled.Events] System.NullReferenceException: Object reference not set to an instance of an object at CustomItems.Items.Scp714.OnHurting (Exiled.Events.EventArgs.HurtingEventArgs ev) [0x00023] in <f6cb6e5a8a1c4dfc81001e3099d5cd04>:0 at Exiled.Events.Extensions.Event.InvokeSafely[T] (Exiled.Events.Events+CustomEventHandler1[TEventArgs] ev, T arg) [0x00024] in <32fb445e6d8b424c811af67d9fed00df>:0

To Reproduce
Steps to reproduce the behavior:

  1. Install CustomItems
  2. Enable SCP-714
  3. Pick up SCP-714
  4. Equip SCP-714

Expected behavior
Clear console without errors

EXILED Version ("latest" is not a version):
5.2.1

Results of show plugins command in console:

image

Extra info
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions