CommandHelper

CommandHelper

46.5k Downloads

NullPointerException when include()ing empty file.

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-2975 - Reported by Nessiesson

[19:45:35 ERROR]: Uh oh! You've found an error in Core.
This is an error caused while running your code, so you may be able to find a workaround, but is ultimately an error in Core itself.
The line of code that caused the error was this:
include()
on or around C:\Users\nessi_000\Dropbox\lethe\plugins\CommandHelper\LocalPackages\ChatFormat\auto_include.ms:2.
Please report this error to the developers, and be sure to include the version numbers:
Server version: 1.7.10-R0.1-SNAPSHOT;
CommandHelper version: 3.3.1-SNAPSHOT.2779-;
Loaded extensions and versions:
CHDangerous (version 1.0.1);
Core (version 3.3.1);
CHSpigot (version 1.2.3);
Here's the stacktrace:
java.lang.NullPointerException
        at com.laytonsmith.core.functions.DataHandling$include.execs(DataHandling.java:2286)
        at com.laytonsmith.core.Script.eval(Script.java:312)
        at com.laytonsmith.core.Script.eval(Script.java:322)
        at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1901)
        at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1858)
        at com.laytonsmith.core.MethodScriptCompiler.registerAutoIncludes(MethodScriptCompiler.java:1927)
        at com.laytonsmith.core.AliasCore$LocalPackage.compileMS(AliasCore.java:752)
        at com.laytonsmith.core.AliasCore.reload(AliasCore.java:518)
        at com.laytonsmith.commandhelper.CommandHelperPlugin.onEnable(CommandHelperPlugin.java:369)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:329)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476)
        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394)
        at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360)
        at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334)
        at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290)
        at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210)
        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458)
        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)
commented

Comment by LadyCailin

Fixed in the latest commit