NullReferenceException at GetNearbyBuildingBlockError
NullReferenceException
at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
at BaseEntity.PivotPoint () [0x00000] in <28246777189a464693c7fb23b5f606c7>:0
at Oxide.Plugins.BaseRepair.GetNearbyBuildingBlock (BaseEntity entity) [0x00008] in <fc95f42dbb76490581827c3babf62c2c>:0
at Oxide.Plugins.BaseRepair.OnEntitySpawned (IOEntity entity) [0x00000] in <fc95f42dbb76490581827c3babf62c2c>:0
at Oxide.Plugins.BaseRepair+<UpdateIoEntities>c__Iterator1.MoveNext () [0x00085] in <fc95f42dbb76490581827c3babf62c2c>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <7177b41a033a4f5591f89f18f64d312a>:0
Please try version 1.0.11 and let me know if the problem still exists
problem stays in last version too.
i see this on active raid.
NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
  at BaseEntity.PivotPoint () [0x00000] in <6c19d2141c194431b8592dfa55d13447>:0 
  at Oxide.Plugins.BaseRepair.GetNearbyBuildingBlock (BaseEntity entity) [0x00008] in <0e27d9c6c49040e08d61b16d8f258e91>:0 
  at Oxide.Plugins.BaseRepair.OnEntitySpawned (IOEntity entity) [0x00000] in <0e27d9c6c49040e08d61b16d8f258e91>:0 
  at Oxide.Plugins.BaseRepair+<UpdateIoEntities>c__Iterator1.MoveNext () [0x00085] in <0e27d9c6c49040e08d61b16d8f258e91>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <7177b41a033a4f5591f89f18f64d312a>:0​
Please try version 1.0.12 and let me know if the problem still exists.
MJSU
Please try version 1.0.12 and let me know if the problem still exists.

nre in 1.0.12 too

NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
  at BaseEntity.PivotPoint () [0x00000] in <6c19d2141c194431b8592dfa55d13447>:0 
  at Oxide.Plugins.BaseRepair.GetNearbyBuildingBlock (BaseEntity entity) [0x00008] in <f51ca307450847c3905e3a1d80dbb8ec>:0 
  at Oxide.Plugins.BaseRepair.OnEntitySpawned (IOEntity entity) [0x00000] in <f51ca307450847c3905e3a1d80dbb8ec>:0 
  at Oxide.Plugins.BaseRepair+<UpdateIoEntities>c__Iterator1.MoveNext () [0x00085] in <f51ca307450847c3905e3a1d80dbb8ec>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <7177b41a033a4f5591f89f18f64d312a>:0 
Well, I will just wrap it in a try-catch which will solve the issue permanently. This has been implemented in 1.0.13.
line 114 should be 

`if (!entity.IsValid() || entity.IsDestroyed || entity.transform == null)`

is the better solution for your fix. swallowing the exception is just a bandaid. gl :)

also, you removed the null check for entity.gameObject, which would've thrown an exception if it was null because you checked if entity was null after this check, whereas in the previous version it was null checked. neither are necessary though, since !entity.IsValid() will null check it properly
That's the exact solution I tried 2 updates ago and it didn't solve the issue.

This is taken from version 1.0.11.
Taken from version 1.0.11

I know swallowing the exception is not the answer but until I find a solution it will do for now.
can try using entity.transform.position instead of entity.PivotPoint then. is there a specific reason for using it?
I figured out the issue. Was following the wrong stack trace. The issue was coming from somewhere else that was missing those checks. Thanks for trying to help nivex.
oh nice !