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 20130606-5ceeec8ce90d) VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11 OS: Windows 7 User Comments: drazisil: Opened the propertied templete in editor. GUEST: just opened project.properties file of a fx project that has been just manipulated by its problem resolver (missing platform change) drazisil: Oening properties file misterm: Opening the IDE rodrigorsantos: <Please provide a description of the problem or the steps to reproduce>. Stacktrace: java.lang.NullPointerException at org.openide.util.lookup.ProxyLookup$R.lookupChange(ProxyLookup.java:461) at org.openide.util.lookup.ProxyLookup.setData(ProxyLookup.java:314) at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:153) at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:126) at org.netbeans.core.multiview.MultiViewTopComponentLookup$MyProxyLookup.setElementLookup(MultiViewTopComponentLookup.java:208) at org.netbeans.core.multiview.MultiViewTopComponentLookup.setElementLookup(MultiViewTopComponentLookup.java:71)
Created attachment 135463 [details] stacktrace
Created attachment 135464 [details] stacktrace Opening the IDE
Created attachment 135474 [details] stacktrace just happened out of nowhere
Created attachment 135483 [details] stacktrace Opened Bundle.properties in ant.browsetask module.
Created attachment 135489 [details] stacktrace after changin gproject group. Seen this also after IDE start.
Created attachment 135496 [details] stacktrace I opened project.properties file of PHP project
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=201209
Created attachment 135536 [details] stacktrace opened a properties file, part of multi module maven project
Created attachment 135544 [details] stacktrace Opened a properties file
Created attachment 135569 [details] stacktrace Exception occurs on open genfiles.properties file
Created attachment 135603 [details] stacktrace Opening file from files tab.
Created attachment 135672 [details] stacktrace open nbproject/private/*.properties file
I think MultiView passes null into the array of Lookup constructed at public void setElementLookup(Lookup look) { final Lookup[] arr = getLookups(); if (arr.length == 2 && look == arr[1]) { return; } setLookups(new Lookup[] {initialLookup, look}); }
Multiview just passes along Lookup instances provided by its MultiviewElements, it cannot pass null value into its internal ProxyLookup
Created attachment 135718 [details] stacktrace Opening a properties file.
Created attachment 135723 [details] stacktrace created a new .properties file from the files view
Created attachment 135733 [details] stacktrace Opening a properties file
Created attachment 135748 [details] stacktrace opened user.build.properties file in nbbuild
Created attachment 135753 [details] stacktrace Open project properties file from File explorer.
Created attachment 135765 [details] stacktrace Opened a Property-File
This is going to generate dozens more reports very quickly. Should be fixed for Beta IMO just to make life easier for everybody. :-)
Created attachment 135800 [details] stacktrace Created a properties file into a new package in a web project.
Created attachment 135844 [details] stacktrace Double clicked a properties file under the Other Sources node of a Maven nb module project (specifically the nodejs projects module on github, file org.netbeans.modules.nodejs.Bundle.properties)
Created attachment 135857 [details] stacktrace Opened an .ini file.
Created attachment 135867 [details] stacktrace opening private.properties
Created attachment 135872 [details] stacktrace I was navigating in maven target folder
Created attachment 135873 [details] stacktrace Double click on search result
(In reply to comment #14) > it cannot pass null value into its internal ProxyLookup Why do you think so? I am pretty sure it does: The NPE happens at http://hg.netbeans.org/ergonomics/file/default/openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java#l461 clearly current is a non-null array and one of its elements is null. The array is sent in as an argument by http://hg.netbeans.org/ergonomics/file/default/openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java#l314 which is obtained from http://hg.netbeans.org/ergonomics/file/default/openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java#l153 and http://hg.netbeans.org/ergonomics/file/default/openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java#l126 nowhere on this path the value of the array is modified - it is only read. That is why the null element in the array must be coming from the caller: http://hg.netbeans.org/ergonomics/file/default/core.multiview/src/org/netbeans/core/multiview/MultiViewTopComponentLookup.java#l208 > Multiview just passes along Lookup instances provided > by its MultiviewElements, Can't one of the MultiViewElements return null?
I've added some diagnostics code in core-main 524d72015841 Please reopen when reproduced with the changes above and attach a new stack trace, thanks.
*** Bug 231354 has been marked as a duplicate of this bug. ***
*** Bug 231583 has been marked as a duplicate of this bug. ***