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 196065

Summary: NullPointerException at java.util.HashMap$HashIterator.nextEntry
Product: platform Reporter: FabianBlechschmidt
Component: FilesystemsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: budgie67
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 177090
Attachments: stacktrace

Description FabianBlechschmidt 2011-02-27 16:39:21 UTC
Build: NetBeans IDE Dev (Build 201102170501)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-9M3263
OS: Mac OS X

User Comments:
FabianBlechschmidt: Nothing.




Stacktrace: 
java.lang.NullPointerException
   at java.util.HashMap$HashIterator.nextEntry(HashMap.java:798)
   at java.util.HashMap$KeyIterator.next(HashMap.java:828)
   at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
   at java.util.HashSet.<init>(HashSet.java:100)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.refreshImpl(FolderObj.java:403)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.refresh(BaseFileObj.java:751)
Comment 1 FabianBlechschmidt 2011-02-27 16:39:25 UTC
Created attachment 106504 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-03-01 10:47:41 UTC
ergonomics#349064f8845d

Problem in synchronization. Nice catch!
Comment 3 Jaroslav Tulach 2011-03-01 10:49:08 UTC
*** Bug 196098 has been marked as a duplicate of this bug. ***
Comment 4 Quality Engineering 2011-03-02 07:00:18 UTC
Integrated into 'main-golden', will be available in build *201103020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/349064f8845d
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #196065: Need to copy the HashSet inside synchronized block