Bug Closed · Resolved

/mm skills info and /mm m info are causing a java.lang.ArrayIndexOutOfBoundsException

#1990 opened by Unknown 5 years ago

Unknownreported this bug

Summary

I run /mm skills info or /mm m info and I'm getting a console error together with "An internal error occurred while attempting to perform this command". Also, /mm skills just shows the help page of /mm m - is that intended?

The error does not occur when I specify the 3. argument, like /mm m info AngrySludge

Steps to reproduce

Run /mm skills info or /mm m info. I'm using the default configuration and a recent 1.16.5 Airplane.gg server jar.

Intended correct behavior

I don't know, it definitely shouldn't throw an error message - maybe a message saying that I need to specify the 3. argument.

Debug log snippet

https://pastebin.com/dNZtFASp

Proposed fixes

A simple if(args.length == 2) catch condition will do it.

Sign in to join the discussion.