NullReferenceException at OnEntityMountedFixed

I'm seeing this error in my log:

Failed to call hook 'OnEntityMounted' on plugin 'AutoCCTVStations v1.0.8' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Core.Libraries.Permission.UserHasPermission (System.String id, System.String perm) [0x0000a] in <50629aa0e75d4126b345d8d9d64da28d>:0
at Oxide.Plugins.AutoCCTVStations.OnEntityMounted (ComputerStation station, BasePlayer player) [0x0000c] in <b3f34c84a7024e40b97b25443d96d903>:0
at Oxide.Plugins.AutoCCTVStations.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x007a6] in <b3f34c84a7024e40b97b25443d96d903>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0

This error seems to occur when a new computer terminal is added. The terminal does not display the CCTV's properly.

Submitted a patch, but this should fix it.

Change:

if (station == null || !permission.UserHasPermission(player.UserIDString, Use)) return;​

To:

if (station == null || player != null && !permission.UserHasPermission(player.UserIDString, Use)) return;

We're not getting an error anymore but it's still not working. Still no stations listed as seen above.

Locked automatically