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 203672

Summary: IndexOutOfBoundsException: Index: 0, Size: 0
Product: connecteddeveloper Reporter: sparkee <sparkee>
Component: Issuetracking FrameworkAssignee: Tomas Stupka <tstupka>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 181978
Bug Depends on:    
Bug Blocks: 204481    
Attachments: stacktrace

Description sparkee 2011-10-13 18:51:29 UTC
This bug was originally marked as duplicate of bug 191635, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Linux

User Comments:
sparkee: Trying to do an svn commit that removed two .directory files from my source tree that were accidentally dropped there with Dolphin.  

These are the only changes in the commit.  Other commits to date have worked with no issues, and I do not believe there were any updates to NetBeans or the environment.




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.RangeCheck(ArrayList.java:604)
   at java.util.ArrayList.get(ArrayList.java:382)
   at org.netbeans.modules.bugtracking.vcs.SvnHookImpl.afterCommit(SvnHookImpl.java:80)
   at org.netbeans.modules.subversion.ui.commit.CommitAction.afterCommit(CommitAction.java:808)
   at org.netbeans.modules.subversion.ui.commit.CommitAction.performCommit(CommitAction.java:699)
   at org.netbeans.modules.subversion.ui.commit.CommitAction.performCommit(CommitAction.java:550)
Comment 1 sparkee 2011-10-13 18:51:35 UTC
Created attachment 112016 [details]
stacktrace
Comment 2 Tomas Stupka 2011-10-20 12:14:17 UTC
handled the NPE and added some diagnostic logs.

core-main #eaee77699e2a

what i don't understand is how this actually could happen, more info would be usefull:
- could you please describe how did you delete those files - in the ide, or outside
- what was those .directory files status before you deleted them
- any special settings in the IDE regarding the visibility of files? files starting with a dot should be hidden by default

thanks
Comment 3 Quality Engineering 2011-10-24 14:04:35 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/eaee77699e2a
User: Tomas Stupka <tstupka@netbeans.org>
Log: issue #203672 - IndexOutOfBoundsException: Index: 0, Size: 0
handled the NPE and added some diagnostic log
Comment 4 sparkee 2011-11-01 11:22:23 UTC
(In reply to comment #2)
> handled the NPE and added some diagnostic logs.
> 
> core-main #eaee77699e2a
> 
> what i don't understand is how this actually could happen, more info would be
> usefull:
> - could you please describe how did you delete those files - in the ide, or
> outside
> - what was those .directory files status before you deleted them
> - any special settings in the IDE regarding the visibility of files? files
> starting with a dot should be hidden by default
> 
> thanks

It has been a while but:
- I probably deleted them externally to the IDE. 
- I am not sure what is meant by the status of the files.  There were not read only, they were owned by me and in my group (Ubuntu Linux Desktop 11.04 64 bit).  They had been inadvertently committed to the repository.  I ultimately used the svn command line client to remove them from the repository.
- I made no setting changes regarding visibility of these files in the IDE. These files are part of a moderate size project (~120K lines of code) that are maintained by a small team of developers not all of whom use Linux.  Some use NetBeans in a Windows environment and some do not use NetBeans at all.  Hence, I did not want these files to be in our subversion repository.

Also of note that I have done several subsequent commits with no problems and with no changes to my configuration.
Comment 5 Tomas Stupka 2012-04-11 10:24:16 UTC
can't reproduce, diagnostic was added. lets deal with this when more info is vialable.