You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if true then
for x = 1, 10 do
goto label1
end
::label1::
end
print("test")
stacktrace (from REPL):
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr) in Z:\git\my\moonsharp\src\MoonSharp.Interpreter\Execution\VM\Processor\Processor_InstructionLoop.cs:line 201
at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args) in Z:\git\my\moonsharp\src\MoonSharp.Interpreter\Execution\VM\Processor\Processor.cs:line 67
at MoonSharp.Interpreter.Script.DoFile(String filename, Table globalContext, String codeFriendlyName) in Z:\git\my\moonsharp\src\MoonSharp.Interpreter\Script.cs:line 362
at MoonSharp.Commands.Implementations.RunCommand.Execute(ShellContext context, String arguments) in Z:\git\my\moonsharp\src\MoonSharp\Commands\Implementations\RunCommand.cs:line 33
at MoonSharp.Program.ExecuteCommand(ShellContext shellContext, String cmdline) in Z:\git\my\moonsharp\src\MoonSharp\Program.cs:line 211
at MoonSharp.Program.InterpreterLoop(ReplInterpreter interpreter, ShellContext shellContext) in Z:\git\my\moonsharp\src\MoonSharp\Program.cs:line 70
at MoonSharp.Program.Main(String[] args) in Z:\git\my\moonsharp\src\MoonSharp\Program.cs:line 47
The text was updated successfully, but these errors were encountered:
user32121
changed the title
NullReferenceException occurs when printing an uninitialized global variable after breaking out of a loop using goto
NullReferenceException occurs when printing an uninitialized global variable after breaking out of a loop using goto in an if statement
Aug 5, 2022
user32121
changed the title
NullReferenceException occurs when printing an uninitialized global variable after breaking out of a loop using goto in an if statement
NullReferenceException occurs when printing after breaking out of a loop using goto in an if statement
Aug 5, 2022
lua script:
(edit: simplified lua script)
stacktrace (from REPL):
The text was updated successfully, but these errors were encountered: