Jump to content

Null Checking

Closed 2.0.22

Stewie
Stewie

Posted

Please can you add some null checking to OnEntitySpawned(Recycler recycler) as we have had several instances where a null was fired and it triggered your recycler.gameObject.GetComponent<CustomRecycle>().

Error:
 

Failed to call internal hook 'OnEntitySpawned' on plugin 'CustomRecycle v2.0.22' [2949838417] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.CustomRecycle.OnEntitySpawned(Recycler recycler) in /home/container/carbon/plugins/CustomRecycle.cs:line 103
   at object Oxide.Plugins.CustomRecycle.InternalCallHook(uint hook, object[] args) in CustomRecycle.cs/Internal:line 168


We are running your plugin on CarbonMod if that helps.

ThePitereq

Posted

Hey, I am currently unavailable but i'll check it in few days, sorry for that!

  • Like 1
ThePitereq

Posted

Weird that it gets error as it means the recycler is null even if it's just initialized so tehcnically recycler is null somehow on spawn.

ThePitereq

Posted

Changed Status from Pending to Closed

1.8m

Downloads

Total number of downloads.

8.3k

Customers

Total customers served.

125.1k

Files Sold

Total number of files sold.

2.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.