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 165804 - ArrayIndexOutOfBoundsException: 1
Summary: ArrayIndexOutOfBoundsException: 1
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmichalsky
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-22 12:44 UTC by Oleg Khokhlov
Modified: 2009-05-29 13:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 151627


Attachments
stacktrace (6.32 KB, text/plain)
2009-05-22 12:44 UTC, Oleg Khokhlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Khokhlov 2009-05-22 12:44:28 UTC
Build: NetBeans IDE Dev (Build 200905190201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
ovk: Netbeans Platform Manager - Sources tab
- add folder twice;
- select second folder and press Remove;
both folders will be removed but MoveUp button still enabled
press MoveUp->exception.



Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 1
        at org.netbeans.modules.apisupport.project.universe.SourceRootsSupport.moveSourceRootUp(SourceRootsSupport.java:191)
        at org.netbeans.modules.apisupport.project.universe.NbPlatform.moveSourceRootUp(NbPlatform.java:579)
        at org.netbeans.modules.apisupport.project.ui.platform.PlatformComponentFactory$SourceRootsModel.moveSourceRootsUp(PlatformComponentFactory.java:413)
        at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerSources.moveUp(NbPlatformCustomizerSources.java:230)
        at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerSources.access$300(NbPlatformCustomizerSources.java:69)
        at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerSources$4.actionPerformed(NbPlatformCustomizerSources.java:185)
Comment 1 Oleg Khokhlov 2009-05-22 12:44:37 UTC
Created attachment 82635 [details]
stacktrace
Comment 2 Oleg Khokhlov 2009-05-22 12:46:31 UTC
same with Javadoc tab.
Comment 3 rmichalsky 2009-05-26 09:42:04 UTC
core-main #af6d4b403a9c
Comment 4 Quality Engineering 2009-05-29 08:24:08 UTC
Integrated into 'main-golden', will be available in build *200905290201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/af6d4b403a9c
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #165804: Each root can now be added only once into Source & javadoc roots, fixing follow-up AIOOBE
Comment 5 Oleg Khokhlov 2009-05-29 13:43:07 UTC
v. in 20090529