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

//goto without arguments throws java.lang.ArrayIndexOutOfBoundsException #294

Closed
2 tasks done
thomasmny opened this issue Sep 9, 2023 · 1 comment · Fixed by #279
Closed
2 tasks done

//goto without arguments throws java.lang.ArrayIndexOutOfBoundsException #294

thomasmny opened this issue Sep 9, 2023 · 1 comment · Fixed by #279
Assignees
Labels
Bug Something isn't working good first issue Good for newcomers

Comments

@thomasmny
Copy link

Server Implementation

Paper

Server Version

1.20

Describe the bug

When running the //goto command without providing any arguments, a java.lang.ArrayIndexOutOfBoundsException is thrown

To Reproduce

  1. Perform//goto command without any additional arguments

Expected behaviour

The correct error message is to be sent to the player

Screenshots / Videos

No response

Error log (if applicable)

https://hastebin.com/share/dalibapoku.ruby

Favs Debugpaste

https://athion.net/ISPaster/paste/view/08afc60f5cca48f9b064356393c0d155

Favs Version

FastAsyncVoxelSniper version 2.9.3

Checklist

Anything else?

In the GotoExecutor the java.lang.ArrayIndexOutOfBoundsException is caught.
However using

x = Integer.parseInt(arguments[0]);
z = Integer.parseInt(arguments[1]);

for getting the x- and z-coordinate input throws the new exception

@Aurelien30000 Aurelien30000 self-assigned this Sep 9, 2023
@Aurelien30000 Aurelien30000 added Bug Something isn't working good first issue Good for newcomers and removed Requires Testing labels Sep 9, 2023
@Aurelien30000
Copy link
Member

Hey, thanks for your report! This issue has been fixed in the cloud command system migration (#279).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants