Windows NullReferenceException: Object reference not set to an instance of an object

Version
2.5
Platform
Windows
NullReferenceException: Object reference not set to an instance of an object


at System.Int32.TryParse (System.String s, System.Int32& result) [0x00008] in <1071a2cb0cb3433aae80a793c277a048>:0


at ClientInfoCollection.GetForNameOrId (System.String _nameOrId, System.Boolean _ignoreCase, System.Boolean _ignoreBlanks) [0x00000] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at ConsoleHelper.ParseParamIdOrName (System.String _param, System.Boolean _ignoreCase, System.Boolean _ignoreBlanks) [0x00000] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at TileEntitySecure.IsUserAllowed (PlatformUserIdentifierAbs _userIdentifier) [0x00000] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at BlockDoorSecure.OnBlockActivated (System.String _commandName, WorldBase _world, System.Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, EntityPlayerLocal _player) [0x00081] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at TraderArea.SetClosed (World _world, System.Boolean _bClosed, EntityTrader _trader, System.Boolean playSound) [0x001a8] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at EntityTrader.OnUpdateLive () [0x0034c] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at EntityAlive.OnUpdateEntity () [0x00031] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at World.TickEntity (Entity e, System.Single _partialTicks) [0x0011e] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at World.TickEntitiesSlice (System.Int32 count) [0x00037] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at World.TickEntitiesFlush () [0x0000c] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at GameManager.UpdateTick () [0x00033] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at GameManager.gmUpdate () [0x004d7] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at GameManager.Update () [0x00000] in <894581b74c2843ac9a5dc09ac7a2b244>:0


On the server, in the console, such an error has been constantly observed for 4 months, most often at night and when someone is near the dealer rect. It's the same on a server without mods!
 
Reproduction Steps
It most often occurs at night, near a merchant
Link to Logs
https://pastebin.com/
Link to Screenshot/Video
https://pastebin.com/

Attachments

  • IMG_0842.jpeg
    IMG_0842.jpeg
    63.8 KB · Views: 4
NullReferenceException: Object reference not set to an instance of an object


at System.Int32.TryParse (System.String s, System.Int32& result) [0x00008] in <1071a2cb0cb3433aae80a793c277a048>:0


at ClientInfoCollection.GetForNameOrId (System.String _nameOrId, System.Boolean _ignoreCase, System.Boolean _ignoreBlanks) [0x00000] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at ConsoleHelper.ParseParamIdOrName (System.String _param, System.Boolean _ignoreCase, System.Boolean _ignoreBlanks) [0x00000] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at TileEntitySecure.IsUserAllowed (PlatformUserIdentifierAbs _userIdentifier) [0x00000] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at BlockDoorSecure.OnBlockActivated (System.String _commandName, WorldBase _world, System.Int32 _cIdx, Vector3i _blockPos, BlockValue _blockValue, EntityPlayerLocal _player) [0x00081] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at TraderArea.SetClosed (World _world, System.Boolean _bClosed, EntityTrader _trader, System.Boolean playSound) [0x001a8] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at EntityTrader.OnUpdateLive () [0x0034c] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at EntityAlive.OnUpdateEntity () [0x00031] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at World.TickEntity (Entity e, System.Single _partialTicks) [0x0011e] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at World.TickEntitiesSlice (System.Int32 count) [0x00037] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at World.TickEntitiesFlush () [0x0000c] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at GameManager.UpdateTick () [0x00033] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at GameManager.gmUpdate () [0x004d7] in <894581b74c2843ac9a5dc09ac7a2b244>:0


at GameManager.Update () [0x00000] in <894581b74c2843ac9a5dc09ac7a2b244>:0


On the server, in the console, such an error has been constantly observed for 4 months, most often at night and when someone is near the dealer rect. It's the same on a server without mods!
You would need to provide the full log, or at least the beginning of the log. NREs are mostly caused by mods, though there are exceptions. But without more details, that error just says there's a problem with a trader. You can also look into any mod(s) you use that have anything at all to do with traders and see if any are outdated/broken.
 
You would need to provide the full log, or at least the beginning of the log. NREs are mostly caused by mods, though there are exceptions. But without more details, that error just says there's a problem with a trader. You can also look into any mod(s) you use that have anything at all to do with traders and see if any are outdated/broken.
The most interesting thing is that the same error is on a completely clean server, without mods.
Post automatically merged:

It 's not permanent , but it is most of the time .
 
The most interesting thing is that the same error is on a completely clean server, without mods.
That would rule out mods, assuming there isn't a mod that got missed (it happens more often than you'd think), but a full log, especially on a clean install where that error occurs, would really help to figure out the cause. Unfortunately, just posting the error without anything else doesn't really provide enough details to find the cause.
 
That would rule out mods, assuming there isn't a mod that got missed (it happens more often than you'd think), but a full log, especially on a clean install where that error occurs, would really help to figure out the cause. Unfortunately, just posting the error without anything else doesn't really provide enough details to find the cause.
Post automatically merged:

Here is the whole part of the server download
 

Attachments

That would rule out mods, assuming there isn't a mod that got missed (it happens more often than you'd think), but a full log, especially on a clean install where that error occurs, would really help to figure out the cause. Unfortunately, just posting the error without anything else doesn't really provide enough details to find the cause.
Will you take a look, please?
 
[CSharp] Checking for updates for Oxide.Compiler.exe | Local MD5: 6256bc14d4b2ff2fb06947dde31dd058 | Last modified: 2025-12-27 10:11:27
[CSharp] Failed to download Oxide.Compiler.exe after 0 attempts with response code '-1', please manually download it from https://downloads.oxidemod.com/artifacts/Oxide.Compiler/master/win-x64.Compiler.exe and save it here C:\7DaysToDie\Oxide.Compiler.exe

Looks like you have at least one mod issue. But, from looking at the error, looks to be something with traders setting the doors locked when it closes.
Will you take a look, please?
 
Will you take a look, please?
I will let Jugginator help you with this. I don't run a server, so can't be sure what exactly is normal there. I do see a lot of warnings about mods in your log, and your log doesn't show the error occurring, so I don't know the answer. He should be able to help you, though.
 
[CSharp] Checking for updates for Oxide.Compiler.exe | Local MD5: 6256bc14d4b2ff2fb06947dde31dd058 | Last modified: 2025-12-27 10:11:27
[CSharp] Failed to download Oxide.Compiler.exe after 0 attempts with response code '-1', please manually download it from https://downloads.oxidemod.com/artifacts/Oxide.Compiler/master/win-x64.Compiler.exe and save it here C:\7DaysToDie\Oxide.Compiler.exe

Looks like you have at least one mod issue. But, from looking at the error, looks to be something with traders setting the doors locked when it closes.
The problem is definitely with the merchant; it occurs when the merchant is closed and there's a player near it. It just happened again at 3 a.m.; there was a player standing near the merchant, near the retail outlet, waiting for it to open.
 
The problem is definitely with the merchant; it occurs when the merchant is closed and there's a player near it. It just happened again at 3 a.m.; there was a player standing near the merchant, near the retail outlet, waiting for it to open.

Yeah it's definitely one of the mods that affects traders/doors one way or another. I dont know what that compiler is for but probably one or more of your mods rely on it
Post automatically merged:

I'm going to move this to not a bug since it has to do with modding, but feel free to use this post for support
 
Back
Top