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

Adding new state causes java.lang.ArrayIndexOutOfBoundsException #5

Closed
JamzTheMan opened this issue Aug 5, 2017 · 1 comment
Closed
Assignees
Labels
bug fixed bug fix is committed for next release MapTool issue relates to MapTool code vs 3rd party libs
Projects
Milestone

Comments

@JamzTheMan
Copy link
Owner

JamzTheMan commented Aug 5, 2017

Reported by paulstrait

One other issue: When I try to add a new state and upload a new image, I get a java.lang.ArrayIndexOutOfBoundsException. I can take an old state I already have and modify it. Also if I try to create a new state that doesn't involve an image (e.g., a dot), the 'Add' button is grayed out.

When you add a new "state" you can now "insert" that state anywhere in the list. But it looks like I forgot to initialize the array index when that dialog loads. A workaround is to simply click up the list anywhere and then add the new state and it should work. (then move it down if you want it at the bottom)

@JamzTheMan JamzTheMan added bug MapTool issue relates to MapTool code vs 3rd party libs labels Aug 5, 2017
@JamzTheMan JamzTheMan added this to the 1.4.3.21 milestone Aug 5, 2017
@JamzTheMan JamzTheMan self-assigned this Aug 5, 2017
@JamzTheMan JamzTheMan modified the milestones: 1.4.3.21, TBD Aug 11, 2017
@JamzTheMan
Copy link
Owner Author

Fixed! New states now added to the bottom if no other state is 'selected'.

@JamzTheMan JamzTheMan added the fixed bug fix is committed for next release label Nov 22, 2017
JamzTheMan added a commit that referenced this issue Nov 22, 2017
java.lang.ArrayIndexOutOfBoundsException 

Task-Url: #5

Signed-off-by: Jamz <Jamz@Nerps.net>
@JamzTheMan JamzTheMan added this to To Do in 1.4.4.0 Nov 23, 2017
@JamzTheMan JamzTheMan moved this from To Do to Done in 1.4.4.0 Nov 23, 2017
@JamzTheMan JamzTheMan modified the milestone: 1.4.0.0 Nov 25, 2017
JamzTheMan pushed a commit that referenced this issue May 18, 2020
Phergus pushed a commit to matejdro/MapTool that referenced this issue Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixed bug fix is committed for next release MapTool issue relates to MapTool code vs 3rd party libs
Projects
No open projects
1.4.4.0
  
Done
Development

No branches or pull requests

1 participant