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

Fix crash when you pass an invalid slot number #4853

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

hellidox
Copy link
Contributor

java.lang.ArrayIndexOutOfBoundsException: Index -4 out of bounds for length 36
at java.base/java.util.Arrays$ArrayList.get(Unknown Source)

Type of change

  • Bug fix
  • New feature

Description

passing an invalid slot number to player.get_item used to crash

How Has This Been Tested?

has not i cannot build on my phone

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

java.lang.ArrayIndexOutOfBoundsException: Index -4 out of bounds for length 36
	at java.base/java.util.Arrays$ArrayList.get(Unknown Source)
@Wide-Cat Wide-Cat merged commit ddea709 into MeteorDevelopment:master Aug 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants