CommandHelper

CommandHelper

46.5k Downloads

pwd() in interpreter-mode stracktraces

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-3033 - Reported by Nessiesson

Simply running pwd(); in interpreter mode causes the following stacktrace:

[23:55:11 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
The line of code that caused the error was this:
pwd();
on or around Interpreter:1.
Please report this error to the developers, and be sure to include the version numbers:
Server version: 1.8-R0.1-SNAPSHOT;
CommandHelper version: 3.3.1-JBDEV;
Loaded extensions and versions:
CHDangerous (version 1.0.1);
SKCompat (version 1.0.0);
CHAdvanced (version 1.0.0);
Core (version 3.3.1);
CHVirtualChests (version 1.0.3);
CHSpigot (version 1.2.3);
CHIRC (version 0.0.1);
Here's the stacktrace:
java.lang.NullPointerException
        at com.laytonsmith.core.functions.Cmdline$pwd.exec(Cmdline.java:1362)
        at com.laytonsmith.core.Script.eval(Script.java:353)
        at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1908)
        at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1865)
        at com.laytonsmith.commandhelper.CommandHelperInterpreterListener.execute(CommandHelperInterpreterListener.java:170)
        at com.laytonsmith.commandhelper.CommandHelperInterpreterListener.textLine(CommandHelperInterpreterListener.java:131)
        at com.laytonsmith.commandhelper.CommandHelperInterpreterListener$1.run(CommandHelperInterpreterListener.java:70)
        at com.laytonsmith.abstraction.bukkit.BukkitConvertor$1.call(BukkitConvertor.java:309)
        at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftFuture.run(CraftFuture.java:89)
        at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
        at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:709)
        at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316)
        at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634)
        at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537)
        at java.lang.Thread.run(Unknown Source)

It seems that this is not an problem when running reflect_pull("file"); which in my case shows C:/Users/Nessie/Dropbox/lethe/Interpreter

commented

Comment by LadyCailin

Fixed.