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 20120907-29038868f731) VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24 OS: Linux User Comments: anebuzelsky: Switched to "Show results as directory tree" in Search Results. I had 7 matches in 7 files listed. First this exception was raised, then the view switched as expected. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.search.ui.MatchingObjectNode.setInvalidOriginal(MatchingObjectNode.java:209) at org.netbeans.modules.search.ui.MatchingObjectNode.<init>(MatchingObjectNode.java:118) at org.netbeans.modules.search.ui.MatchingObjectNode.<init>(MatchingObjectNode.java:101) at org.netbeans.modules.search.ui.ResultsOutlineSupport.createNodeForMatchingObject(ResultsOutlineSupport.java:404) at org.netbeans.modules.search.ui.ResultsOutlineSupport.access$700(ResultsOutlineSupport.java:97) at org.netbeans.modules.search.ui.ResultsOutlineSupport$FolderTreeChildren.createNodes(ResultsOutlineSupport.java:637)
Created attachment 124022 [details] stacktrace
Created attachment 124024 [details] stacktrace
http://hg.netbeans.org/core-main/rev/611bbf1c79c9 Fixed. Note: Some related problems that are caused by activation of plugins are hopefully fixed in http://hg.netbeans.org/core-main/rev/6a86f60e5541
Integrated into 'main-golden', will be available in build *201209130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/611bbf1c79c9 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #217984: NPE at search.ui.MatchingObjectNode.setInvalidOriginal
Marking as 72patch-candidate. Please note that both commits are important: http://hg.netbeans.org/core-main/rev/611bbf1c79c9 Fixes adding just deleted nodes to search results. http://hg.netbeans.org/core-main/rev/6a86f60e5541 Fixes updating of DataObjects in search results window. Example: Searching in Favorites window. If Java SE plugin is not activated, and a Java file in Search Results window is clicked, the plugin is activated and items in search results are marked as deleted or erroneous. This changeset fixes it.
Verified, but please consider if we really want to backport this; P3, and so far only *two* reports, both from Tonda;) IMHO we don't need to bother w/ backporting to 7.2.1.
> we don't need to bother w/ backporting to 7.2.1. OK for me. I have removed the patch candidate from whiteboard.