Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319754

Summary: NullPointerException with filter field and sorting
Product: [Tools] MAT Reporter: Andrew Johnson <andrew_johnson>
Component: GUIAssignee: Project Inbox <mat.gui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andrew Johnson CLA 2010-07-13 12:19:50 EDT
To reproduce, bring up a histogram, type 'x' into the filter field for class name then click on the class name column heading.

An internal error occurred during: "Sorting...".
java.lang.NullPointerException
at java.util.Collections.sort(Unknown Source)
at org.eclipse.mat.query.refined.RefinedStructuredResult.sort(RefinedStructuredResult.java:292)
at org.eclipse.mat.ui.internal.viewer.RefinedResultViewer$SortingJob.doRun(RefinedResultViewer.java:1434)
at org.eclipse.mat.ui.editor.AbstractPaneJob.run(AbstractPaneJob.java:34)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Andrew Johnson CLA 2010-07-13 12:20:45 EDT
There's a simple fix in RefinedResultViewer.resort()
Comment 2 Andrew Johnson CLA 2010-07-13 12:29:23 EDT
Check for null children in resort()