Failed to call hook 'OnEntityMounted' on plugin 'ChillFuel v0.2.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ChillFuel.OnEntityMounted (BaseMountable entity, BasePlayer player) [0x001ae] in <f9ada0e80eee4c0daf2f5e39c3bea7d5>:0
at Oxide.Plugins.ChillFuel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00330] in <f9ada0e80eee4c0daf2f5e39c3bea7d5>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0 NullReferenceException at OnEntityMountedError
This must be a rare occasion. We have this running on our server a lot longer before I put it online.
Maybe it' s when a player mounted a decayed vehicle that's just about to despawn.
As reviewers do not like excessive null-checks, I will take note of this but will wait to take action until I get more error messages.
News to me. :P Null checks should always be applied to situations where something could potentially be null. There is such as thing as unnecessary null checking though, but not in this case.ThishaAs reviewers do not like excessive null-checks, I will take note of this but will wait to take action until I get more error messages.
Failed to call hook 'OnEntityMounted' on plugin 'ChillFuel v0.2.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ChillFuel.OnEntityMounted (BaseMountable entity, BasePlayer player) [0x001ae] in <61617bc5a4794902a6d6a726d4b01a86>:0
at Oxide.Plugins.ChillFuel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00330] in <61617bc5a4794902a6d6a726d4b01a86>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 It doesn't seem to be about another subcall within this method as I don't see it begin mentioned.
I had remarks beforre to remove some null checks in another plugin but I could add null check on the entity and player add start. I don't see what I could do else at the moment.
Maybe it has something to do with scientist in chinook? Although we don't have errors. We'll keep an eye on it. I'll check balloon and sedan. I didn't do that, we don't use them but it should be cought by the type checks.
I'll have a look.
Merged post
I have it, the fuelsystem is invalid fro a car along the road.
Merged post
Got it. By adding a force check of the fuel it instantiates the fuelsystem. I'll update very soon.
Merged post
I posted an update. It's weird why the fuelsystem acts differently than the others.
I just had to use it directly but when you check it, it's null. I had to remove the valid check too.
Merged post
Okaayyy, just saw the static on ModularCar (shame)