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.
Summary: | NPE at ProxyLookup$R.lookupChange | ||
---|---|---|---|
Product: | platform | Reporter: | misterm <misterm> |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED INCOMPLETE | ||
Severity: | normal | CC: | adithyank, akozlov75, alied, csjunker, cyhelsky, dkonecny, drazisil, ehsavoie, everflux, janario, javydreamercsw, jskrivanek, lforet, markiewb, michbarsinai, misterm, mkhramov, mslama, ralphbenjamin, rodrigorsantos, rptmaestro, stefan79, stezeb, tboudreau, tipirneni, tmysik, tnleeuw, tstupka, vriha, vv159170, williambacchi, zdenek.rod |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 201209 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
misterm
2013-06-06 18:52:44 UTC
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. *** |