{"action":"created","issue":{"url":"https://api.github.com/repos/bensku/Skript/issues/289","repository_url":"https://api.github.com/repos/bensku/Skript","labels_url":"https://api.github.com/repos/bensku/Skript/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/bensku/Skript/issues/289/comments","events_url":"https://api.github.com/repos/bensku/Skript/issues/289/events","html_url":"https://github.com/bensku/Skript/issues/289","id":194476124,"number":289,"title":"nullpointer on parsing function without parameters","user":{"login":"BananaPirate","id":5720884,"avatar_url":"https://avatars.githubusercontent.com/u/5720884?v=3","gravatar_id":"","url":"https://api.github.com/users/BananaPirate","html_url":"https://github.com/BananaPirate","followers_url":"https://api.github.com/users/BananaPirate/followers","following_url":"https://api.github.com/users/BananaPirate/following{/other_user}","gists_url":"https://api.github.com/users/BananaPirate/gists{/gist_id}","starred_url":"https://api.github.com/users/BananaPirate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BananaPirate/subscriptions","organizations_url":"https://api.github.com/users/BananaPirate/orgs","repos_url":"https://api.github.com/users/BananaPirate/repos","events_url":"https://api.github.com/users/BananaPirate/events{/privacy}","received_events_url":"https://api.github.com/users/BananaPirate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-08T23:48:00Z","updated_at":"2016-12-10T10:29:29Z","closed_at":null,"body":"```\r\n[18:41:02] [Server thread/INFO]: \u001B[0;37;22m[\u001B[0;33;22mSkript\u001B[0;37;22m]\u001B[m Reloading all scripts...\u001B[m\r\n[18:41:02] [Server thread/ERROR]: The 1st argument's definition is invalid. It should look like 'name: type' or 'name: type = default value'. (function test.sk, line 1: function test():')\r\n[18:41:02] [Server thread/ERROR]: #!#! \r\n[18:41:02] [Server thread/ERROR]: #!#! [Skript] Severe Error:\r\n[18:41:02] [Server thread/ERROR]: #!#! Could not load function test.sk\r\n[18:41:02] [Server thread/ERROR]: #!#! \r\n[18:41:02] [Server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.\r\n[18:41:02] [Server thread/ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/\r\n[18:41:02] [Server thread/ERROR]: #!#! and check whether this error has already been reported.\r\n[18:41:02] [Server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),\r\n[18:41:02] [Server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.\r\n[18:41:02] [Server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.\r\n[18:41:02] [Server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast.\r\n[18:41:02] [Server thread/ERROR]: #!#! \r\n[18:41:02] [Server thread/ERROR]: #!#! Stack trace:\r\n[18:41:02] [Server thread/ERROR]: #!#! java.lang.NullPointerException\r\n[18:41:02] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.function.Functions.loadFunction(Functions.java:121)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:485)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:247)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:201)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at ch.njol.skript.Skript.reloadScripts(Skript.java:694)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:145)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:649)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchServerCommand(CraftServer.java:635)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_11_R1.DedicatedServer.aM(DedicatedServer.java:437)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:400)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:675)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:574)\r\n[18:41:02] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)\r\n[18:41:02] [Server thread/ERROR]: #!#! \r\n[18:41:02] [Server thread/ERROR]: #!#! Version Information:\r\n[18:41:02] [Server thread/ERROR]: #!#!   Skript: 2.2-dev22f\r\n[18:41:02] [Server thread/ERROR]: #!#!   Bukkit: 1.11-R0.1-SNAPSHOT\r\n[18:41:02] [Server thread/ERROR]: #!#!   Minecraft: 1.11\r\n[18:41:02] [Server thread/ERROR]: #!#!   Java: 1.8.0_65 (Java HotSpot(TM) 64-Bit Server VM 25.65-b01)\r\n[18:41:02] [Server thread/ERROR]: #!#!   OS: Windows Server 2012 R2 amd64 6.3\r\n[18:41:02] [Server thread/ERROR]: #!#! \r\n[18:41:02] [Server thread/ERROR]: #!#! Running CraftBukkit: false\r\n[18:41:02] [Server thread/ERROR]: #!#! \r\n[18:41:02] [Server thread/ERROR]: #!#! Current node: function test(): (function test.sk, line 1)\r\n[18:41:02] [Server thread/ERROR]: #!#! Current item: null\r\n[18:41:02] [Server thread/ERROR]: #!#! \r\n[18:41:02] [Server thread/ERROR]: #!#! Thread: Server thread\r\n[18:41:02] [Server thread/ERROR]: #!#! \r\n[18:41:02] [Server thread/ERROR]: #!#! End of Error.\r\n[18:41:02] [Server thread/ERROR]: #!#! \r\n```\r\n\r\nscript in question is:\r\n\r\n```\r\nfunction test():\r\n\tbroadcast \"test\"\r\n```\r\n\r\nworks fine if I simply add a parameter\r\n\r\n```\r\nfunction test(p: player):\r\n\tbroadcast \"test\"\r\n```\r\n\r\nalso worth noting that the error message lists the bukkit version incorrectly\r\nServer is running CraftBukkit version git-Spigot-f950f8e-58bff62 (MC: 1.11) (Implementing API version 1.11-R0.1-SNAPSHOT)\r\n\r\nWhich when writing this is 1 version behind current."},"comment":{"url":"https://api.github.com/repos/bensku/Skript/issues/comments/266198468","html_url":"https://github.com/bensku/Skript/issues/289#issuecomment-266198468","issue_url":"https://api.github.com/repos/bensku/Skript/issues/289","id":266198468,"user":{"login":"bensku","id":4330456,"avatar_url":"https://avatars.githubusercontent.com/u/4330456?v=3","gravatar_id":"","url":"https://api.github.com/users/bensku","html_url":"https://github.com/bensku","followers_url":"https://api.github.com/users/bensku/followers","following_url":"https://api.github.com/users/bensku/following{/other_user}","gists_url":"https://api.github.com/users/bensku/gists{/gist_id}","starred_url":"https://api.github.com/users/bensku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensku/subscriptions","organizations_url":"https://api.github.com/users/bensku/orgs","repos_url":"https://api.github.com/users/bensku/repos","events_url":"https://api.github.com/users/bensku/events{/privacy}","received_events_url":"https://api.github.com/users/bensku/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T10:29:29Z","updated_at":"2016-12-10T10:29:29Z","body":"... but it is stupid that it doesn't work out of the box."}}
{"actor":{"display_login":"bensku"}}