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 217984 - NullPointerException at org.netbeans.modules.search.ui.MatchingObjectNode.setInvalidOriginal
Summary: NullPointerException at org.netbeans.modules.search.ui.MatchingObjectNode.set...
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-07 10:23 UTC by Antonin Nebuzelsky
Modified: 2012-10-09 11:30 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192203


Attachments
stacktrace (9.49 KB, text/plain)
2012-09-07 10:23 UTC, Antonin Nebuzelsky
Details
stacktrace (9.49 KB, text/plain)
2012-09-07 10:41 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2012-09-07 10:23:32 UTC
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)
Comment 1 Antonin Nebuzelsky 2012-09-07 10:23:34 UTC
Created attachment 124022 [details]
stacktrace
Comment 2 Antonin Nebuzelsky 2012-09-07 10:41:00 UTC
Created attachment 124024 [details]
stacktrace
Comment 3 Jaroslav Havlin 2012-09-11 13:41:56 UTC
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
Comment 4 Quality Engineering 2012-09-13 02:12:41 UTC
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
Comment 5 Jaroslav Havlin 2012-10-04 14:26:43 UTC
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.
Comment 6 Tomas Danek 2012-10-08 13:50:53 UTC
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.
Comment 7 Antonin Nebuzelsky 2012-10-09 11:30:56 UTC
> we don't need to bother w/ backporting to 7.2.1.

OK for me. I have removed the patch candidate from whiteboard.