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.
Build: NetBeans IDE Dev (Build 201111160600) VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08 OS: Windows 7 User Comments: GUEST: abrindo o programa. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.projectapi.LazyLookupProviders$1$1.beforeLookup(LazyLookupProviders.java:80) at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:672) at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:526) at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:497) at org.openide.util.lookup.ProxyLookup$R.collectFires(ProxyLookup.java:634) at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:168)
Created attachment 113304 [details] stacktrace
Is it possible for there to be concurrent calls to beforeLookup on a single ProxyLookup? They really need to be synchronized since this is used for lazy initialization of lookup contents that needs to be at most once per lookup. From looking at the code it seems that synchronizing on the ProxyLookup object ought to be safe, so I will try that, though I am surprising that it is not already called with that monitor held.
core-main #821eb8a8e979
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/821eb8a8e979 User: Jesse Glick <jglick@netbeans.org> Log: #205268: [71cat] NullPointerException at org.netbeans.modules.projectapi.LazyLookupProviders$1$1.beforeLookup
*** Bug 211112 has been marked as a duplicate of this bug. ***