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 - NullPointerException at java.util.HashMap$HashIterator.nextEntry
Summary: NullPointerException at java.util.HashMap$HashIterator.nextEntry
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 196098 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-27 16:39 UTC by FabianBlechschmidt
Modified: 2011-03-02 07:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177090


Attachments
stacktrace (883 bytes, text/plain)
2011-02-27 16:39 UTC, FabianBlechschmidt
Details

Note You need to log in before you can comment on or make changes to this bug.
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