Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cd and ls crash when passed a non-directory link #1257

Open
LadyCailin opened this issue Feb 11, 2021 · 0 comments
Open

cd and ls crash when passed a non-directory link #1257

LadyCailin opened this issue Feb 11, 2021 · 0 comments
Labels
bug Things that don't work as designed good first issue Wanna take a stab at contributing? Try this one! Should be easier than most.

Comments

@LadyCailin
Copy link
Member

    Uh oh! You've found an error in Core.
    This happened while running your code, so you may be able to find a workaround, but is ultimately an issue in Core.
    The following code caused the error:
    ls('file.zip')
    on or around Interpreter:1.
    Please report this to the developers, and be sure to include the version numbers:
    Server version: SHELL;
    MethodScript version: 3.3.4;
    Loaded extensions and versions:
    Core (3.3.4)
    Here's the stacktrace:
    java.lang.NullPointerException
            at com.laytonsmith.core.functions.Cmdline$ls.exec(Cmdline.java:1699)
            at com.laytonsmith.core.Script.eval(Script.java:409)
            at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:2818)
            at com.laytonsmith.tools.Interpreter$4.run(Interpreter.java:832)
            at java.lang.Thread.run(Thread.java:748)
    
    Uh oh! You've found an error in Core.
    This happened while running your code, so you may be able to find a workaround, but is ultimately an issue in Core.
    The following code caused the error:
    cd('file.zip')
    on or around Interpreter:1.
    Please report this to the developers, and be sure to include the version numbers:
    Server version: SHELL;
    MethodScript version: 3.3.4;
    Loaded extensions and versions:
    Core (3.3.4)
    Here's the stacktrace:
    java.lang.IllegalArgumentException: File provided to SetRootFolder must be a folder, not a file. (.\Downloads\2656-netstat-ipv6.PID.zip was found.)
            at com.laytonsmith.core.environments.GlobalEnv.SetRootFolder(GlobalEnv.java:209)
            at com.laytonsmith.core.functions.Cmdline$cd.exec(Cmdline.java:1648)
            at com.laytonsmith.core.Script.eval(Script.java:409)
            at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:2818)
            at com.laytonsmith.tools.Interpreter$4.run(Interpreter.java:832)
            at java.lang.Thread.run(Thread.java:748)
@LadyCailin LadyCailin added bug Things that don't work as designed good first issue Wanna take a stab at contributing? Try this one! Should be easier than most. labels Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that don't work as designed good first issue Wanna take a stab at contributing? Try this one! Should be easier than most.
Projects
None yet
Development

No branches or pull requests

1 participant