Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319754 - NullPointerException with filter field and sorting
Summary: NullPointerException with filter field and sorting
Status: RESOLVED FIXED
Alias: None
Product: MAT
Classification: Tools
Component: GUI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 12:19 EDT by Andrew Johnson CLA
Modified: 2010-07-13 12:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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()