Exceptions on compilation
LadyCailinBot opened this issue ยท 1 comments
CMDHELPER-2949 - Reported by Veyyn
These two exceptions can occur if a script file is empty or only contains comments:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(Unknown Source)
at com.laytonsmith.core.MethodScriptCompiler.lex(MethodScriptCompiler.java:76)
at com.laytonsmith.core.functions.IncludeCache.get(IncludeCache.java:38)
at com.laytonsmith.core.MethodScriptCompiler.registerAutoIncludes(MethodScriptCompiler.java:1872)
at com.laytonsmith.core.AliasCore$LocalPackage.compileMS(AliasCore.java:694)
at com.laytonsmith.core.AliasCore.reload(AliasCore.java:469)
at com.laytonsmith.commandhelper.CommandHelperPlugin.onEnable(CommandHelperPlugin.java:345)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:448)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:382)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.reload(CraftServer.java:801)
at org.bukkit.Bukkit.reload(Bukkit.java:288)
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:703)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:690)
at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:296)
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:261)
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558)
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)
java.lang.NullPointerException
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1848)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1810)
at com.laytonsmith.core.MethodScriptCompiler.registerAutoIncludes(MethodScriptCompiler.java:1872)
at com.laytonsmith.core.AliasCore$LocalPackage.compileMS(AliasCore.java:694)
at com.laytonsmith.core.AliasCore.reload(AliasCore.java:469)
at com.laytonsmith.commandhelper.CommandHelperPlugin.onEnable(CommandHelperPlugin.java:345)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:448)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:382)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.reload(CraftServer.java:801)
at org.bukkit.Bukkit.reload(Bukkit.java:288)
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:703)
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:690)
at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:296)
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:261)
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558)
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)