If you type in :? list
, that's 2 arguments. But if you check for the 3rd by doing argments[2]
, this will throw an index out of bounds exception. The reason you're not seeing the error message is you probably have a catch
block that ignores it without printing an error. You'll need to find this catch
and at the very least put this inside it:
catch (Exception e) {
e.printStackTrace();
}
In the future, never leave a catch block empty. Always log something or else you won't be able to notice when errors occur.