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.
Steps to reproduce: 1. mount a filesystem in favorites view 2. clone a hg repository into a folder of the filesystem 3. delete the cloned folder (repository folder) The folder disappears for a while but than appears again and only its .hg folder is missing. The folder cannot be deleted by IDE. Exceptions in log: SEVERE [org.openide.util.RequestProcessor] java.lang.NullPointerException at org.netbeans.modules.mercurial.MercurialInterceptor.fileDeletedImpl(MercurialInterceptor.java:156) at org.netbeans.modules.mercurial.MercurialInterceptor.access$000(MercurialInterceptor.java:66) at org.netbeans.modules.mercurial.MercurialInterceptor$1.run(MercurialInterceptor.java:102) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) SEVERE [org.openide.util.RequestProcessor] java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) at java.util.AbstractList$Itr.next(AbstractList.java:343) at org.openide.nodes.Children$Dupl.updateList(Children.java:2291) at org.openide.nodes.Children$Keys.setKeys(Children.java:2084) at org.netbeans.modules.apisupport.project.ui.ImportantFilesNodeFactory$ImportantFilesChildren.access$200(ImportantFilesNodeFactory.java:186) at org.netbeans.modules.apisupport.project.ui.ImportantFilesNodeFactory$ImportantFilesChildren$1.run(ImportantFilesNodeFactory.java:274) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Can you send me the repository you cloned? I am have difficulty reproducing this.
I used several local test repositories created by: mkdir test cd test hg init cp somedata . hg commit I think it does not depend on the repository structure.
I can reproduce this.
Created attachment 53196 [details] proposed patch
IDE:------------------------------------------------- IDE: [11/19/07 12:07 PM] Committing started Checking in MercurialInterceptor.java; /shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/MercurialInterceptor.java,v <-- MercurialInterceptor.java new revision: 1.16; previous revision: 1.15 done IDE: [11/19/07 12:07 PM] Committing finished
This exception occurred again tested on Product Version: NetBeans IDE Dev (Build 200801220000) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Description: ============ 1. create Java Desktop Application project 2. do initializing for Mercurial 3. delete this project Exception is not thrown every time, but often. The whole StackTrace: ===================== java.lang.NullPointerException at org.netbeans.modules.mercurial.MercurialInterceptor.fileDeletedImpl(MercurialInterceptor.java:161) at org.netbeans.modules.mercurial.MercurialInterceptor.access$000(MercurialInterceptor.java:66) at org.netbeans.modules.mercurial.MercurialInterceptor$1.run(MercurialInterceptor.java:103) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
I reproduced this bug the second time I created/deleted a project.
Created attachment 55369 [details] proposed patch
IDE:------------------------------------------------- IDE: [1/23/08 8:05 AM] Committing "MercurialInterceptor.java" started Checking in MercurialInterceptor.java; /shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/MercurialInterceptor.java,v <-- MercurialInterceptor.java new revision: 1.19; previous revision: 1.18 done IDE: [1/23/08 8:05 AM] Committing "MercurialInterceptor.java" finished IDE: [1/23/08 8:05 AM] Diffing finished
Verified Product Version: NetBeans IDE Dev (Build 200803251204) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)