NullReferenceException: Object reference not set to an instance of an objectSuggestion

hi, I caught an error, there is a notification between them about an incorrect target, I read the next topic with this notification, perhaps this time it is related to NRE.. unfortunately, there is no additional information :(

thanks a lot)

 

Or is this a coincidence.. and the errors are not related to this plugin at all? I didn't think about that at all, I apologize for the hasty conclusions.. :)

 

m249.entity[20606968] changed its network group to null
m249.entity[20606968] changed its network group to null
NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
at PlayerInventory.SendUpdatedInventoryInternal (PlayerInventory+Type type, ItemContainer container, PlayerInventory+NetworkInventoryMode mode) [0x000a7] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.SendUpdatedInventory (PlayerInventory+Type type, ItemContainer container, System.Boolean bSendInventoryToEveryone) [0x00018] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.UpdateContainer (System.Single delta, PlayerInventory+Type type, ItemContainer container, System.Boolean bSendInventoryToEveryone, System.Single temperature) [0x00023] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.ServerUpdate (System.Single delta) [0x00065] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.OnClothingChanged (Item item, System.Boolean bAdded) [0x00010] in <aa8085841c044a71bccb9a8becaa2abd>:0
at ItemContainer.Insert (Item item) [0x00046] in <aa8085841c044a71bccb9a8becaa2abd>:0
at Item.SetParent (ItemContainer target) [0x00039] in <aa8085841c044a71bccb9a8becaa2abd>:0
at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x004ed] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.GiveItem (Item item, ItemMoveModifier modifiers, ItemContainer container) [0x0003a] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.GiveItem (Item item, ItemContainer container) [0x00000] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventoryProperties.<GiveToPlayer>g__CreateItem|7_0 (PlayerInventoryProperties+ItemAmountSkinned toCreate, ItemContainer destination, PlayerInventoryProperties+<>c__DisplayClass7_0& ) [0x00069] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventoryProperties.GiveToPlayer (BasePlayer player) [0x000e5] in <aa8085841c044a71bccb9a8becaa2abd>:0
at NPCPlayer.EquipLoadout (PlayerInventoryProperties[] loads) [0x00013] in <aa8085841c044a71bccb9a8becaa2abd>:0
at NPCPlayer.ServerInit () [0x00036] in <aa8085841c044a71bccb9a8becaa2abd>:0
at HumanNPC.ServerInit () [0x00000] in <aa8085841c044a71bccb9a8becaa2abd>:0
at ScientistNPC.ServerInit () [0x00000] in <aa8085841c044a71bccb9a8becaa2abd>:0
at BaseNetworkable.Spawn () [0x00035] in <aa8085841c044a71bccb9a8becaa2abd>:0
at BaseEntity.Spawn () [0x00000] in <aa8085841c044a71bccb9a8becaa2abd>:0
at CH47HelicopterAIController.SpawnScientist (UnityEngine.Vector3 spawnPos) [0x00024] in <aa8085841c044a71bccb9a8becaa2abd>:0
at CH47HelicopterAIController.SpawnScientists () [0x000e2] in <aa8085841c044a71bccb9a8becaa2abd>:0
at InvokeHandlerBase`1[T].DoTick () [0x00109] in <56a8465208a2426b8d7860af16c92b6c>:0
at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <56a8465208a2426b8d7860af16c92b6c>:0

[Simple Kill Feed] invalid target
[Simple Kill Feed] invalid target
NullReferenceException: Object reference not set to an instance of an object
NullReferenceException: Object reference not set to an instance of an object
at PlayerInventory.SendUpdatedInventoryInternal (PlayerInventory+Type type, ItemContainer container, PlayerInventory+NetworkInventoryMode mode) [0x000a7] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.SendUpdatedInventory (PlayerInventory+Type type, ItemContainer container, System.Boolean bSendInventoryToEveryone) [0x00018] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.UpdateContainer (System.Single delta, PlayerInventory+Type type, ItemContainer container, System.Boolean bSendInventoryToEveryone, System.Single temperature) [0x00023] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.ServerUpdate (System.Single delta) [0x00065] in <aa8085841c044a71bccb9a8becaa2abd>:0
at PlayerInventory.OnClothingChanged (Item item, System.Boolean bAdded) [0x00010] in <aa8085841c044a71bccb9a8becaa2abd>:0
at ItemContainer.Remove (Item item) [0x00046] in <aa8085841c044a71bccb9a8becaa2abd>:0
at Item.SetParent (ItemContainer target) [0x00012] in <aa8085841c044a71bccb9a8becaa2abd>:0
at Item.RemoveFromContainer () [0x00009] in <aa8085841c044a71bccb9a8becaa2abd>:0
at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x004cf] in <aa8085841c044a71bccb9a8becaa2abd>:0
at LootableCorpse.TakeFrom (BaseEntity fromEntity, ItemContainer[] source) [0x0008b] in <aa8085841c044a71bccb9a8becaa2abd>:0
at HumanNPC.CreateCorpse (BasePlayer+PlayerFlags flagsOnDeath, UnityEngine.Vector3 posOnDeath, UnityEngine.Quaternion rotOnDeath, System.Collections.Generic.List`1[T] triggersOnDeath) [0x00099] in <aa8085841c044a71bccb9a8becaa2abd>:0
at BasePlayer.OnKilled (HitInfo info) [0x00255] in <aa8085841c044a71bccb9a8becaa2abd>:0
at ScientistNPC.OnKilled (HitInfo info) [0x00000] in <aa8085841c044a71bccb9a8becaa2abd>:0
at BaseCombatEntity.Die (HitInfo info) [0x000aa] in <aa8085841c044a71bccb9a8becaa2abd>:0
at BasePlayer.Die (HitInfo info) [0x000ac] in <aa8085841c044a71bccb9a8becaa2abd>:0
at BasePlayer.OnInvalidPosition () [0x00009] in <aa8085841c044a71bccb9a8becaa2abd>:0
at BaseEntity.TransformChanged () [0x0003b] in <aa8085841c044a71bccb9a8becaa2abd>:0
at BaseEntity.NetworkPositionTick () [0x00029] in <aa8085841c044a71bccb9a8becaa2abd>:0
at InvokeHandlerBase`1[T].DoTick () [0x00109] in <56a8465208a2426b8d7860af16c92b6c>:0
at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <56a8465208a2426b8d7860af16c92b6c>:0

invalid target is a log message i can remove it in next patch. the nullref can be from any plugin since the logging would not say the source itself.

yeah, im so sorry, invalid target dont give to me any problem, thanks ;)

im sorry again, but everytime near invalid target i have 2 NRE

NullReferenceException: Object reference not set to an instance of an object
[Simple Kill Feed] invalid target
NullReferenceException: Object reference not set to an instance of an object

1st NRE:

NullReferenceException: Object reference not set to an instance of an object
  at PlayerInventory.SendUpdatedInventoryInternal (PlayerInventory+Type type, ItemContainer container, PlayerInventory+NetworkInventoryMode mode) [0x000a7] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.SendUpdatedInventory (PlayerInventory+Type type, ItemContainer container, System.Boolean bSendInventoryToEveryone) [0x00018] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.UpdateContainer (System.Single delta, PlayerInventory+Type type, ItemContainer container, System.Boolean bSendInventoryToEveryone, System.Single temperature) [0x00023] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.ServerUpdate (System.Single delta) [0x00065] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.OnClothingChanged (Item item, System.Boolean bAdded) [0x00010] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at ItemContainer.Insert (Item item) [0x00046] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at Item.SetParent (ItemContainer target) [0x00039] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x004ed] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.GiveItem (Item item, ItemMoveModifier modifiers, ItemContainer container) [0x0003a] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.GiveItem (Item item, ItemContainer container) [0x00000] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventoryProperties.<GiveToPlayer>g__CreateItem|7_0 (PlayerInventoryProperties+ItemAmountSkinned toCreate, ItemContainer destination, PlayerInventoryProperties+<>c__DisplayClass7_0& ) [0x00069] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventoryProperties.GiveToPlayer (BasePlayer player) [0x000e5] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at NPCPlayer.EquipLoadout (PlayerInventoryProperties[] loads) [0x00013] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at NPCPlayer.ServerInit () [0x00036] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at HumanNPC.ServerInit () [0x00000] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at ScientistNPC.ServerInit () [0x00000] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at BaseNetworkable.Spawn () [0x00035] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at BaseEntity.Spawn () [0x00000] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at CH47HelicopterAIController.SpawnScientist (UnityEngine.Vector3 spawnPos) [0x00024] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at CH47HelicopterAIController.SpawnScientists () [0x000e2] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <56a8465208a2426b8d7860af16c92b6c>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <56a8465208a2426b8d7860af16c92b6c>:0 

2nd NRE:

NullReferenceException: Object reference not set to an instance of an object
  at PlayerInventory.SendUpdatedInventoryInternal (PlayerInventory+Type type, ItemContainer container, PlayerInventory+NetworkInventoryMode mode) [0x000a7] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.SendUpdatedInventory (PlayerInventory+Type type, ItemContainer container, System.Boolean bSendInventoryToEveryone) [0x00018] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.UpdateContainer (System.Single delta, PlayerInventory+Type type, ItemContainer container, System.Boolean bSendInventoryToEveryone, System.Single temperature) [0x00023] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.ServerUpdate (System.Single delta) [0x00065] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at PlayerInventory.OnClothingChanged (Item item, System.Boolean bAdded) [0x00010] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at ItemContainer.Remove (Item item) [0x00046] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at Item.SetParent (ItemContainer target) [0x00012] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at Item.RemoveFromContainer () [0x00009] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x004cf] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at LootableCorpse.TakeFrom (BaseEntity fromEntity, ItemContainer[] source) [0x0008b] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at HumanNPC.CreateCorpse (BasePlayer+PlayerFlags flagsOnDeath, UnityEngine.Vector3 posOnDeath, UnityEngine.Quaternion rotOnDeath, System.Collections.Generic.List`1[T] triggersOnDeath) [0x00099] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at BasePlayer.OnKilled (HitInfo info) [0x00255] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at ScientistNPC.OnKilled (HitInfo info) [0x00000] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at BaseCombatEntity.Die (HitInfo info) [0x000aa] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at BasePlayer.Die (HitInfo info) [0x000ac] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at BasePlayer.OnInvalidPosition () [0x00009] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at BaseEntity.TransformChanged () [0x0003b] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at BaseEntity.NetworkPositionTick () [0x00029] in <85a0464fb6274df7a9147a488c9061a6>:0 
  at InvokeHandlerBase`1[T].DoTick () [0x00109] in <56a8465208a2426b8d7860af16c92b6c>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <56a8465208a2426b8d7860af16c92b6c>:0 

reworking the plugin see if i can remove that nullreference whcih should not be shown since it does have nullchecks

thanks)