NullReferenceException at PopulateZoneLocationsError

Hi,

We're getting an error in the plugin. Its only generating 2 domes (oil rigs) after a server update. Thats all. Ive deleted 2 dome zone files:
- /home/rustserver/serverfiles/oxide/data/zonedomes_data.json (includes 2 domes)
- /home/rustserver/serverfiles/oxide/data/ZoneManager (got all the domes in it)

ZoneManagerAutoZone conf:

{ "ZonesDome Option": { "Use Zone Domes Spheres over Zones": true, - Pastebin.com

(21:52:21) | Failed to call hook 'OnServerInitialized' on plugin 'ZoneManagerAutoZones v1.2.7' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.ZoneManagerAutoZones.PopulateZoneLocations () [0x05cf3] in <948c1523ee2040f0a2e58300b741a937>:0 at Oxide.Plugins.ZoneManagerAutoZones.OnServerInitialized () [0x00000] in <948c1523ee2040f0a2e58300b741a937>:0 at Oxide.Plugins.ZoneManagerAutoZones.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00038] in <948c1523ee2040f0a2e58300b741a937>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>: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 (21:52:21)

 

These are the only domes being created:
{ "Zones": { "oilrigai2": { "Position": "2825.326 0 1673.171", - Pastebin.com

Merged post

OK. So I probably have fixed this:

1. Remove the files:
- /home/rustserver/serverfiles/oxide/plugins/ZoneManagerAutoZones.cs
- /home/rustserver/serverfiles/oxide/data/ZoneManager/zone_data.json
- /home/rustserver/serverfiles/oxide/data/zonedomes_data.json

2. Reload all your plugins (oxide.reload all if needed).
3. Insert ZoneManagerAutoZones.cs plugin back into Plugins Folder.
4. Wait for the server to compile and here they are again.

Probably needed a fully reload for it to get back to work again after a server purge.
@Developer; maybe its an idea to get this as feature request so it deletes all files and does all automatically?