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

I kept gettting this error spamming my console.
I uploaded the plugin and it stoped, so i waited 10 mins and loaded it back up and errors started to come up again. maybe the plugin needs a update?

Error: "NullReferenceException: Object reference not set to an instance of an object"

Hey, are you able to give me a full error from your log file? This is not enough.
Thats all it gives.. when the plugin is loaded it just spams
"NullReferenceException: Object reference not set to an instance of an object"
Make sure the plugin is fully updated with Oxide
There would be a full error in your Rust/Unity logs else oxide/logs.
I have the same problem with this plugin. No orders get loaded on configured Vending Machines, I get this error:

I believe the plugin does not set the vending orders correctly, because this seems like an internal error. The vending machine is empty on the server. I need to stop the plugin (and start CompoundOptions because it reloads all vending machines correctly) in order to stop the spam, which is every second.

NullReferenceException: Object reference not set to an instance of an object
  at NPCVendingMachine.Refill () [0x00074] in <75a6566f672d49f68f2851b1c52458e5>:0
  at InvokeHandlerBase`1[T].DoTick () [0x000be] in <3d302662c50d421c86a60fa5e51230e7>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <3d302662c50d421c86a60fa5e51230e7>:0

(Filename: <75a6566f672d49f68f2851b1c52458e5> Line: 0)
​
May you attach your configuration?

I only created one vending machine, used the ID from the spawn command.

{
  "Vendings": [
    {
      "Id": "12072194",
      "Offers": [
        {
          "Currency": {
            "Shortname": "white.berry",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          },
          "SellItem": {
            "Shortname": "white.berry.seed",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          }
        },
		{
          "Currency": {
            "Shortname": "yellow.berry",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          },
          "SellItem": {
            "Shortname": "yellow.berry.seed",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          }
        },
		{
          "Currency": {
            "Shortname": "red.berry",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          },
          "SellItem": {
            "Shortname": "red.berry.seed",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          }
        },
		{
          "Currency": {
            "Shortname": "green.berry",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          },
          "SellItem": {
            "Shortname": "green.berry.seed",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          }
        },
		{
          "Currency": {
            "Shortname": "blue.berry",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          },
          "SellItem": {
            "Shortname": "blue.berry.seed",
            "DisplayName": "",
            "Amount": 1,
            "Skin": 0,
            "IsBlueprint": false
          }
        }
      ],
      "Shortname": "npcvendingmachine",
      "WorldPosition": {
        "x": 651.1,
        "y": 23.0,
        "z": 159.8
      },
      "RelativePosition": {
        "x": -26.83973,
        "y": -2.01474571,
        "z": -45.32908
      },
      "RelativeMonument": "assets/bundled/prefabs/autospawn/monument/medium/bandit_town.prefab",
      "DetectByShortname": true
    }
  ]
}


Merged post

Oh my god. Okay, it was all my fault. It is seed.white.berry (etc), not white.berry.seed.

It works now.

EDIT: Can we change the name of the shop somehow? It says Output Outfitters.
I will consider adding it in future, thank you for the suggestion. And there will be shortname "validation".
Locked automatically