This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 155442 - IndexOutOfBoundsException: Index: 21, Size: 20
Summary: IndexOutOfBoundsException: Index: 21, Size: 20
Status: RESOLVED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: javydreamercsw
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on: 171788
Blocks:
  Show dependency tree
 
Reported: 2008-12-15 02:56 UTC by Exceptions Reporter
Modified: 2010-08-21 21:07 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 78777


Attachments
stacktrace (3.00 KB, text/plain)
2008-12-15 02:56 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2008-12-15 02:56:05 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows Vista, 6.0, x86

User Comments:
sunbiz: Moving Components Inside an Activity Diagram

efhilton: Moved the entire content of the UML diagram (select all, drag).
Suddenly, I got this error.



Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 21, Size: 20
        at java.util.ArrayList.add(ArrayList.java:367)
        at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:267)
        at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:256)
        at org.netbeans.modules.uml.drawingarea.view.AlignWithMoveStrategyProvider$MovingWidgetDetails.updateIndexIfRequired(AlignWithMoveStrategyProvider.java:779)
        at org.netbeans.modules.uml.drawingarea.view.AlignWithMoveStrategyProvider.movementFinished(AlignWithMoveStrategyProvider.java:180)
        at org.netbeans.modules.visual.action.MoveAction.mouseReleased(MoveAction.java:100)
Comment 1 Exceptions Reporter 2008-12-15 02:56:13 UTC
Created attachment 74941 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-02-13 10:57:17 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=78777
Comment 3 Exceptions Reporter 2009-03-13 15:57:42 UTC
This issue has already 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=78777
Comment 4 Sergey Petrov 2009-03-17 10:57:52 UTC
will try to see if can be fixed in 6.7
Comment 5 javydreamercsw 2010-08-16 20:55:54 UTC
Found an index issue that might be related to this issue. Should be fixed but unable to test until issue #171788 is addressed.
Comment 6 javydreamercsw 2010-08-18 12:34:48 UTC
Changeset: 3d313c140a28
Author:    Javier Ortiz <javier.ortiz.78@gmail.com>
Date:      2010-08-18 07:34
Message:   We just removed a child. Adjust the index accordingly.
Issue #155442 - IndexOutOfBoundsException: Index: 21, Size: 20
Comment 7 javydreamercsw 2010-08-20 21:51:09 UTC
Changing to reopened since I'm having issues pushing to repository to avoid verification.
Comment 8 javydreamercsw 2010-08-21 21:07:13 UTC
Changeset: a80995be9e83
Author:    Javier Ortiz <javydreamercsw@netbeans.org>
Date:      2010-08-21 16:06
Message:   We just removed a child. Adjust the index accordingly.
Issue #155442 - IndexOutOfBoundsException: Index: 21, Size: 20