IndexOutOfRangeException at pollCommand
krazy
(18:26:39) | [Oxide] 18:26 [Error] Failed to call hook 'pollCommand' on plugin 'Poleless v0.0.3' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Plugins.Poleless.pollCommand (BasePlayer player, System.String command, System.String[] args) [0x000c3] in <f0693f26d9d1468886725ffffc625098>:0 
  at Oxide.Plugins.Poleless.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00052] in <f0693f26d9d1468886725ffffc625098>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
(18:27:30) | Mr.Pink[1551634/76561198130004377] died (Cold)
(18:27:43) | [Oxide] 18:27 [Error] Failed to call hook 'pollCommand' on plugin 'Poleless v0.0.3' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Plugins.Poleless.pollCommand (BasePlayer player, System.String command, System.String[] args) [0x0007d] in <f0693f26d9d1468886725ffffc625098>:0 
  at Oxide.Plugins.Poleless.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00052] in <f0693f26d9d1468886725ffffc625098>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
rustybeachcomber
I am also getting this error in console and there is no Pollless.json located in the oxide/config directory.
DesSM
Failed to call hook 'pollCommand' on plugin 'Pollless v0.0.4' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Plugins.Pollless.pollCommand (BasePlayer player, System.String command, System.String[] args) [0x001a9] in <a1d555398b234914a7a3312f9d8efa75>:0
at Oxide.Plugins.Pollless.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00052] in <a1d555398b234914a7a3312f9d8efa75>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
SacrosanctA
same issue here
Hawker
same issue, please fix it thx
Deeplyfri3d
same here, we need a fix for this

Failed to call hook 'pollCommand' on plugin 'Pollless v0.0.4' (IndexOutOfRangeException: Index was outside the bounds of the array.)

at Oxide.Plugins.Pollless.pollCommand (BasePlayer player, System.String command, System.String[] args) [0x0007d] in <c48579c915924c38bc7159c6a966d514>:0

at Oxide.Plugins.Pollless.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00052] in <c48579c915924c38bc7159c6a966d514>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

Toliman
This plugin is a pure mess.
i tried to update it, but it would be easier to just re-write it.

There is no try-catch for his arguments (thats why all the exceptions occur, instead of readable error).
In some cases he catches an exception but the only thing he does it send a player message with the string "Erorr_Number". Great Message (yes Erorr, not Error!)
SendMessage(player, "Erorr_Number");​

 

I looked up the config\json, and it seems as the list is just empty.
There is something wrong witht the updatePollList() or the getPolls().
One of them fu**s up the list.