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 198419 - NullPointerException at org.openide.filesystems.PathElements.contains
Summary: NullPointerException at org.openide.filesystems.PathElements.contains
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.0
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 23:26 UTC by emiddio
Modified: 2011-05-11 19:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 177433


Attachments
stacktrace (2.15 KB, text/plain)
2011-05-07 23:26 UTC, emiddio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2011-05-07 23:26:00 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

User Comments:
GUEST: starting Netbeans

emiddio: import from netbeans beta2 -- after installing -- fresh .netbeans/dev dir




Stacktrace: 
java.lang.NullPointerException
   at org.openide.filesystems.PathElements.contains(PathElements.java:87)
   at org.openide.filesystems.PathElements$EnumerationImpl.hasMoreElements(PathElements.java:136)
   at org.openide.filesystems.AbstractFolder.find(AbstractFolder.java:275)
   at org.openide.filesystems.AbstractFileSystem.findResource(AbstractFileSystem.java:240)
   at org.openide.filesystems.MultiFileSystem.findResourceOn(MultiFileSystem.java:448)
   at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:841)
Comment 1 emiddio 2011-05-07 23:26:04 UTC
Created attachment 108170 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-05-09 14:22:55 UTC
Must be caused by MultiCPU access and memory write reorders!
Comment 3 Jaroslav Tulach 2011-05-09 14:42:29 UTC
synchronized in ergonomics#a06e2dac4857
Comment 4 Quality Engineering 2011-05-11 19:42:55 UTC
Integrated into 'main-golden', will be available in build *201105111436* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a06e2dac4857
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #198419: Prevent double checked locking by making all access to tokens variable synchronized