CommandHelper

CommandHelper

46.5k Downloads

Strange error

LadyCailinBot opened this issue ยท 5 comments

commented

CMDHELPER-2791 - Reported by MariuszT

Here is a example:

http://paste.thezomg.com/10970/96106213/

This code produce java.lang.IndexOutOfBoundsException on startup:

http://paste.thezomg.com/10971/13779611/

Sometimes two asigments to null, line after line, also produce error but I can't find some usefuel example.

@test1 = null
@test2 = null

error: http://paste.thezomg.com/10972/13779612/

commented

Comment by EntityReborn

First off, that code makes no sense. {{die()}} will immediately kill that script there, the null assignments are never hit. Also, that first traceback seems to do with creating MSAs, and unrelated.

commented

Comment by MariuszT

It's just an example. The problem is not in logic but in syntax parser. It's not problem with MSA file. Use my code in any part of CH and you will see stacktrace.

commented

Comment by EntityReborn

If you can provide a complete code example that will reproduce this, that will be very helpful. I added your two assignments as in the original post to main.ms, and that did not reproduce any error. Please re-verify that this is happening.

commented

Comment by MariuszT

Can you test it again? Add this code http://paste.thezomg.com/10970/96106213/ on top of your config.txt file. I just tested it on last build (#2452) and there is still the same error http://paste.thezomg.com/12258/03458013/ after startup.

commented

Comment by LadyCailin

This is fixed in the latest build. This is a duplicate of 2849, which has been fixed now.